« first day (3900 days earlier)      last day (970 days later) » 

12:09 AM
'Morning Heapies.
 
 
1 hour later…
1:31 AM
@JohnK.N. Thanks for replying, what do you mean, when you said it will tell me what it prefers?? based on my understanding this is where i setup the connection manually and it can be anything I want as long as it exists.
here's the content of the file

# tnsnames.ora Network Configuration File: C:\WINDOWS.X64_193000_db_home\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.

ORCLPDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
i understand from this file that i can connect to orcl or orclpdb using the localhost:1521 and the only difference i noticed is that orcl is dedicated server but i dont understand what it means
 
 
4 hours later…
6:03 AM
Basically your TNSnams.ora is the configuration file which defines how you connect to an Oracle Database (instance).
SERVER = DEDICATED will connect you to your instance directly via a dedicated connection. Your connection doesn't have to be given to you by a Dispatcher process and you will have a certain amount of memory allocated to you connection (vs. a lower amount of memory in a SHARED connection, where a DISPATCHER will assign you a connection).
There are certain processes which have to be DEDICATED, because of certain constraints. One of them being RMAN (Recovery Manager) which performs backups. So I guess that the RMAN process will be using the ORCL connection string to connect to your instance and normal users would use ORCLPDB.
A good presentation of what happens between SHARED and DEDICATED Connections can be found at About Dedicated and Shared Server Processes
@fido9dido ---^
The advantage of SHARED over DEDICATED is that you can have more connections when you set up a SHARED Server connection. The advantage of a DEDICATED connection is you have the process all to yourself.
OINC™
The IPC protocol is a kind of in-process-memory protocol that allow you to connect to your local instance without using the network stack. Your connection is direct. A bit like SQL Server's shared memory protocol when you connect to a local instance of SQL Server. Creating a Valid Connection String Using Shared Memory Protocol
I guess a good starting point for TNSnames.ora is 6 Local Naming Parameters in the tnsnames.ora File (Oracle)
Morning
If you add TAB to you configuration then you might be able to understand it better. I added Comment lines to separate the individual configuration "sections".
 
7:16 AM
0
Q: How to reduce the size of a Primary Key Index

GaryI'm using Azure SQL DB and noticed that one of my largest databases appears to have a primary key index with a total size of 6Gb. However, the total rows in the table only amount to around 78k rows at any given point in time. This table stores outbound email and sms messages, so it fills up and g...

someone please answer this. i went to type and just started screaming
 
7:39 AM
is the answer obvious?
 
8:06 AM
> This table stores outbound email and sms messages
bet you a whole dollar it's just lots of LOB data
got a bit triggered by the "my table is too big" tone cause... is it? is it really?
 
i suppose it could be something interesting but the overwhelming impression i got was of someone who just doesn't have a handle on what their dataset is 🤷‍♂️
probably you and i have different jobs so we expect different things 😜
 
No I think you're right
 
    # tnsnames.ora Network Configuration File: C:\WINDOWS.X64_193000_db_home\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.

    # ------------------------------------------------------------
    #  ORCLPDB Connection Config
    # ------------------------------------------------------------
    ORCLPDB =
        (DESCRIPTION =
            (ADDRESS_LIST =
                (ADDRESS =
                    (PROTOCOL = TCP)
                    (HOST = localhost)
                    (PORT = 1521))
@fido9dido ----^ (structured tnsnames.ora)
 
> With my own local testing, it seems removing rows from this table does reduce the size of the PK, but this does not appear to be happening on the production database.
I wonder how well-matched their local testing is to the production environment
 
8:15 AM
@JohnK.N. thank you
 
it's also not clear to me why 6Gb is too much data
 
IT IS I.
EVAN THE GREAT
 
like 6Gb of EVAN would be Too Much. 6Gb of EMAILS, maybe that's an appropriate amount
 
Evan is triggered, just like Postgres' foreign keys
 
6 GB of Evan is just the tip
 
8:18 AM
ha ha ha
 
SOOO
 
a deer, a female deer
oh no that's not right is it
 
pretty close. I think it's a French song so it's probably soux
which no one knows how to pronounce anyway
I'm going to write alphanumeric sequences into PostgreSQL.
Then you can start at 01aA and that will increment to 01aZ which will then roll over to 01bA
 
Why would you do that?
Wouldn't it roll over to 01b0?
 
no, because 0-9 is a sequence, and A-Z is a sequence and a-z is a sequence.
Because that's how the Excel gods and Perl agreed upon it.
 
8:26 AM
Ah
 
So you can do AAA .. ZZZ
And then because lexiographically ZZZ sorts before AAAA things will just work.
 
Your mom sorts lexicographically
 
Nah, she takes the longer one first. You're at the end of the line.
 
😂
 
wait, where will ZZZ roll over to?
 
8:41 AM
AAAA
duh.
 
and 999 to 0000?
 
No, to 1000
 
and 99ZZ ?
 
The way I currently have that modeled, each sequence has a display capacity so that could go either way in my current model.
I'm of the opinion though that desired behavior would be 100AA
But if you wanted 99AAA, I can do that!
 
9:09 AM
@EvanCarroll but why 100AA and not 100A ?
You'll miss the 100A to 100Z that way
all xxxA to xxxZ really
nah, ignore me.
 
 
5 hours later…
2:32 PM
Good morning the heap
@PeterVandivier 6 KB would be too much
 
you know what bugs me, using reserved keywords as table or column names. Like [Case] for instance. Also, table names should be damn plural, like [Cases], if the table contains more than one case.
I know that last bit is like the commas-vs-tabs thing, or the commas at the start of the line vs the end of the line. But adding an s to the table name means it's no longer a reserved keyword.
 
@HannahVernon I'm more annoyed that so many reserved keywords are for real-world concepts. Name, User, etc.
But even if I'm using something that is a reserved keyword (except columns like name, description, etc) usually there's some other context that is missing from the entry. "This table is LOG" "...okay, LOG for what?"
And you can take my singular entity names from my cold, dead hands.
5
 
2:53 PM
@bbaird Wouldn't that be "name" from "hand"?
 
@mustaccio The table is Appendage, AppendageType = 'H', Temperature = 0K
You have to go to the Individual table to determine pulse from the date of death.
Am I really going to use Python to do dumb text file processing for ad hoc stuff sent to me in Excel files? Or just return to the rusty swiss army knife that is SAS?
 
I use Powershell and I find it's just generally a lot more flexible for everything.
Begin able to do everything in one environment is pretty amazing. Like SQL to get a collection of something, then do something in the Windows Scheduler, put up a window for input, and execute any other command line and then also bring in someone's .NET DLL and call the methods.
 
 
1 hour later…
4:16 PM
19
Q: Outdated Answers: accepted answer is now unpinned on Stack Overflow

Anita TaylorLast week, as part of our Outdated Answers project, we ran a test on Stack Overflow to see what would happen if we stopped pinning the accepted answer to the top of the list of answers. As expected, there were no negative repercussions when we made this change. So, as promised, today we are makin...

2
 
seems like a good change
 
yes
 
5:07 PM
pinned, lol
 
 
5 hours later…
9:39 PM
I just got 20k on Unix & Linux
weee
This sounds like a great change. It'll be nice when our votes matter on other parts of this site too, like moderating moderators. I'd like to downvote the racist ones StackOverflow habitually ignores. Like chosen answers, just because they were picked once and often with insufficient information doesn't mean they should linger forever. — Evan Carroll 38 secs ago
shots fired. ;)
 

« first day (3900 days earlier)      last day (970 days later) »