« first day (678 days earlier)      last day (4488 days later) » 
05:00 - 20:0020:00 - 00:00

05:54
1
A: Why do I have to select from the dual table?

Bacon BitsStrictly, yes, the FROM clause of a SELECT statement is not optional. The syntax for SQL-99 details the basic SELECT statment, and the FROM clause doesn't have any square brackets around it. That indicates the standard considers it non-optional: SELECT [ DISTINCT | ALL ] {Column expression [ A...

Great first answer!
06:06
morning @JackDouglas
wondering if I should send this over to dba
0
Q: How much work actually happens on SSMS and how much on the server itself?

AkashSuppose I run the following query: declare @i integer set @i=1 while @i < 2000000 BEGIN insert into t1 (ID,DESC,date) values (@i%200,concat(NEWID(),newid()),GETDATE()) set @i = @i +1 END Is the loop actually running on the client machine, and calling insert each time over the network, or is...

06:23
@JackDouglas it is, UVd
however, I wondered about all the tag edits here:
-2
Q: Syntax error from COPY into PostgreSQL

phaI wanted to copy a text file containing geographical information into a PostgreSQL database. The path of the file is E:\MSc_Semister1\AdvanceDB\HomeWork\data.txt. I used the COPY command, but it is telling me that I have a syntax error. I have been trying for the whole day and try but nothing wo...

firstly, that is deprecated on SO, is it deprecated here as well?
secondly, suggests something bigger
06:36
@dezso not a dba regular, but as a mod on few other Stack Exchange sites, I'm working at killing
I'm not against it at all
But it should be clear that the policy applies to other sites too
 
2 hours later…
08:23
@Sathya Hi :)
@Sathya I think that would be good here (the answer is pretty simple but it might come again)
@JackDouglas hi!
@JackDouglas thanks, will send it over
@dezso good question, one for meta I think. Personaly I think the tag is valueless.
@dezso not to me? for me is anything involving getting data in and out (as in 'not with SQL') of the db
"normally in the context of data warehouse systems", but not always
no idea what others think though...
@Sathya thanks, got it
@JackDouglas asked
@JackDouglas this is why I'd feel more appropriate
@dezso I'd much rather see that question tagged etl as well
Lets ask @concernedoftunbridgewells what he thinks?
@dezso voted :)
we are fast :)
now leaving for office
08:38
@JackDouglas cheers
@dezso you are and I am trying to keep up today ;)
0
Q: Should we use the ETL tag narrowly or broadly?

Jack DouglasI retagged this (closed) question with etl assuming the tag should cover all (non-SQL) aspects of getting all sorts of data into an RDBMS. There is also this question—the only one tagged data-import which I suggest we retag etl. However perhaps I'm interpreting ETL too broadly and we should rest...

 
2 hours later…
10:30
@JackDouglas You rang?
@ConcernedOfTunbridgeWells Hi :)
Thought you might like to input on the meta question about
just above...
@JackDouglas I'd say data import becomes ETL when it gets significant 'E' and 'T' components. If you're just loading a pre-digested CSV file into a table it's probably a stretch to call it ETL because of the lack of E and T in the process.
You could use ETL processes to load all sorts of things - CRM systems, general ledger interfaces, posting regulatory reports to electronic interfaces, payroll processing ...
Looking at the question I'd say it's something you could do with an ETL tool but it doesn't really have a 'T' component. More of a data migration problem.
Having said that people use ETL tools for data migration all the time. If anything I'd say the OP's question should be tagged .
And my answer on the question.
0
A: Should we use the ETL tag narrowly or broadly?

ConcernedOfTunbridgeWellsYou can certainly use an ETL tool to populate something that isn't a data warehouse - for example I'm currently working on a process that de-duplicates data and populates a CRM system. I'd call it an ETL process. Looks like a duck, quacks like a duck. However in the case of the question that t...

Anybody wildly disagree with that?
Should I retag the question ?
10:46
@ConcernedOfTunbridgeWells at least include this suggestion in your answer
I wanted to flag this one, but there is no "write-only user" flag around:
-8
A: Why use both TRUNCATE and DROP?

NeoAs far as temp tables are concerned this is much required as temp tables irrespective of the main database are getting created in the tempdb and also as are meant for temporary calculation purpose or resultset hence there is no need to log records for this table and hence truncate (minimal loggin...

(It came up in the late answers list)
@dezso It's wrong but not spam, off-topic or offensive. Just downvote it.
@ConcernedOfTunbridgeWells I did. But it's a pain to see it, and I wanted to take revenge :)
@dezso I just downvoted it and posted a comment explaining why the OP was wrong. We can call in a mod strike if he gets anti-social.
I don't expect him to return after one year
11:25
Now I have problems again regarding this one:
2
Q: First post not in review list?

dezsoHere is a question from Joey, which is his first post on DBA.SE (his user profile shows exactly one question and no answers so far). However, the first posts review list is empty (and today's listing shows zero reviews). Shouldn't this post show up in this list? EDIT Recently I experience the...

it certainly doesn't look like
 
2 hours later…
13:54
afternoon guys
JNK
JNK
hi
@JNK hows it going bro, good wknd?
JNK
JNK
yep unexciting
guess thats better than excitement for all the wrong reasons
@JNK do u program in c# by any chance?
JNK
JNK
I do not
I know a little .NET by accident from working in powershell
13:58
ah ok
@HansRudel 'mornin
@Lamak morning bro, all good in da hood?
as good as it gets on a monday
(not so much)
lol know the feeling
im having issues with paging and multiple tasks. Been trying to figure out how to pause all the tasks, update my datatable, and then recommence the tasks. Got the paging Sproc working, just cant figure out how to pause and then resume the tasks without creating new tasks.
morning all
14:11
mornin
the overseas dept finally got up :)
This should be closed (migrated to DBA.SE):
0
Q: Is it useful to have the SQL Server instance root directory on a separate drive?

adhocgeekI know it's possible to change many of the default paths when installing SQL Server, and generally when I do an install I change the data and log folders to be on separate drives (typically D and E), however I've recently been given a pre-installed machine which is running an instance name other ...

as it has already been cross-posted here.
Morning... Been awhile :-_)
:-) even
@ypercube Then shouldn't it be just closed on SO?
14:27
yes, with 5 votes it can be closed or migrated (and then closed as duplicate)
JNK
JNK
@ypercube its already been cross posted?
1
Q: Is it useful to have the SQL Server instance root directory on a separate drive?

adhocgeekI know it's possible to change many of the default paths when installing SQL Server, and generally when I do an install I change the data and log folders to be on separate drives (typically D and E), however I've recently been given a pre-installed machine which is running an instance name other ...

In the OP's words: "(cross-posted from stackoverflow - apologies if this is frowned upon!)"
JNK
JNK
closed
happy monday!
JNK
JNK
normal procedure is ill close the second one that was opened
and say "don't do that!"
14:34
Yeah. I had noticed the first question but I wasn't logged to comment.
14:49
0
Q: Manually increase PostgreSQL's table size limit of 32 TB?

user1301036I need a free database software and thought of PostgreSQL. But then I read it has a table size limit of 32 terabytes, but I need more (and don't want to spend thousand/millions on high end database software like Oracle). Is there a way to manually increase that limit? And if so, what is the pena...

My answer will be "partition" once the OP replies
JNK
JNK
wowzers
that is a big table
oh he's putting websites in it
said as if that's the most natural thing in the world
15:07
If that doesn't end in tears, I'll NULL my hat
5
I have a terrible suspicion that this was already discussed earlier
the OP then wanted an archive.org clone for cheap
JNK
JNK
@MikeWalsh Thanks for answering that drive letter question
@MarkStorey-Smith MongoDB is web scale ... ?
@dezso i agree
@ConcernedOfTunbridgeWells :D
That cracks me up everytime I watch it
15:14
@JNK No problem :-) It's good to be back.. Let's see if I can keep it up.
@MarkStorey-Smith It's a good one. I'm sure the phrase would make a great basis for a drinking song.
@MikeWalsh Long time no see... work been getting in the way of idle chat? :)
@MarkStorey-Smith Indeed it has. Went independent last summer full time and it's been crazy since. Still crazy but I've really missed helping folks out this way. We'll see if I keep coming back. I need to just make dba.se my start page then I'll have no choice but to be interrupted by that question that is begging for an answer ;-)
15:33
@dezso could be the same guy
33 billion webpages?
I expect it to be a little smaller (with compression). JavaScript functions will be removed (unless they display something on the website by default). And, I'll rather need 33 billion web pages. But yes, I need them. — user1301036 5 mins ago
JNK
JNK
the entire innertubes is 350m websites
Can't wait to see his "how do I write a web crawler?" question on SO!
@Phil nutch
@phil is there an easy way to force a hard parse in 11gR2? Adaptive cursor sharing isn't working.
1
Q: Storing big numbers over 9,000 digits in Python

user1301036I'm planning to use very big numbers in Python, but wonder if Python can handle very big numbers. The numbers are going to have up to 3,000 zeros. And, how much bytes does a 1 with 3,000 zeros use? Third question, how can I save a number as integer into a file with Python without having to str(...

15:41
3000 zeros?!
@rfusca alter system flush shared_pool; ?
@Phil single query, not all
delete v$sql where sql_id = 'blah'; -- :D
I jest
lol
Anyway, the real answer is dbms_shared_pool.purge()
Never tried it, and would be scared of doing so on a prod box
15:44
ya :/
Another idea - gather stats on one of the tables involved. Think that forces a hard parse
don't have dbms_shared_pool installed and that means I'd have to go figure out the address and such every run
@Phil which would also trigger a hard parse for every query that uses that table
@rfusca Not installed? It's a core sys package, is it not? It's certainly present on my testbed 11.2 DB
@Phil its not there and several sites mention installing it
but this is also a box that was upgraded from 10 to 11.2
so that could have something to do with it
Could also be SE/SE1 vs EE
15:48
This is EE
Anyway, can't think of any other options. I'd go for a DDL on a table involved and take the hard parse hit for other queries involved. Would only be a short perf blip
Just read a blog that says a comment on column ... ''; does the trick
@Phil docs.oracle.com/cd/B19306_01/appdev.102/b14258/d_shpool.htm "To create DBMS_SHARED_POOL, run the DBMSPOOL.SQL script. The PRVTPOOL.PLB script is automatically executed after DBMSPOOL.SQL runs. These scripts are not run by CATPROC.SQL."
@Phil hmm i'll give it a shot. Any table involved in the query should trigger it right?
Yup
I may have found a 'magic bullet' earlier for some serious performance problems we've had for about 2 years.. A rogue UPDATE that basically updates every row in a table - so it locks out another critical update for the time it runs. Its never long enough to show up on reports or such, but it turns out it runs a few hundred times a minute.
we're shutting down a service, making a tiny change, and restarting it...I think it'll fix it...VERY, very excited
update bigtable set field1 = 0 WHERE not exists(blah blah blah) and field1 <> 0 ;
:)
This is where you find out you've spent way too much on Oracle licenses and beefy boxes because you don't need the horsepower you thought you needed! :)
15:53
@Phil thats exactly right
and i've been screaming that forever now..we have code problems above all else
Happened to me many moons ago - we ended up only partially fixing the code (in a C batch), as making it an order of magnitude faster would have been too embarrassing and we didn't want the customer asking why 90% of their new Sun E15k was now sitting idle
@Phil hahaha, nice
well, this should fix a particular process and really help the rest of the system. It won't take care of everything , but it will go a long way
we still have certain business requirements that by definition means some crapy sql
Must start looking for a job :/
lol
never long enough to show up on reports or such
15:59
frickin oracle and ibm
i just want drivers
@ypercube ?
I just liked that. (no "Like" button for a sub-comment)
@ypercube ah :D
I use to set long_query_time=0 for mysql investigations. Of course dealing with a small mysql db is nothing compared to an enterprise Oracle one.
@ypercube ya, logging everything to sort through isn't really an option.
is hadoop and hbase limited commercial use?
16:10
@Phil @rfusca is this what i have to download to get to the client installer so that i can create a linked server?
nevermind
@Phil Yeah, Python does bignums.
@rfusca: I think not. Hadoop is under the Apache licence.
@ypercube yeah. "enterprise" is code for "paid support"
I meant "enterprise" in terms of size. Biggest MySQL server I've played with had just 32GB or ram (Read: COTW's laptop size). rfusca's db is probably a scale or two larger.
16:55
> "The question is widely applicable to a large audience. A detailed canonical answer is required to address all the concerns."
2
Q: mysql : inner join takes 3 minutes

headslingI had a similar question open on SO for postgres - now having the same issue with mysql.. I have two tables - Table A : 1MM rows, AsOfDate, Id, BId (foreign key to table B) Table B : 50k rows, Id, Flag, ValidFrom, ValidTo Table A contains multiple records per day between 2011/01/01 and 2011/1...

@rfusca are tnsnames files supposed to go on the server or the client?
@headsling Instead of constant contradiction, if I were you, I'd try the same with PKs. Only then would you know whether those are irrelevant or not. (If everybody seems to drive on the wrong side of the motorway, what do you suspect?) — dezso 29 secs ago
17:23
@swasheck client
they're basically a mapping file
how to make mods angry...ask a question like this
-6
Q: Moderators should not be allowed to moderate questions they have participated in answering

StingyJackTitle says it all. I had a situation where a moderator answered a question and then marked another answer (that said the same thing, but more directly) for conversion to comment because they felt "its length was not up to community standards". While I think it is important to maintain some set ...

@rfusca that's what i thought ... but when i install the client tools (via InstantClient), the network folder doesnt appear in home.
@dezso please step away from the question
@swasheck Did you want to be snarky? :)
dba.stackexchange.com/a/28567/10064 - is MySQL's optimizer so stupid as to really be fooled by moving around WHERE and ON conditions on an inner join?
@dezso no ... it's clear this guy doesn't really want help ...
@rfusca if so ... then ... wow
17:35
@rfusca That guy seems to know his thing :)
(meaning I usually just accept what he says)
@dezso i'm not arguing with roland - just surprised (ok, well...not really) at MySQL
I know, I know
This world is full of surprises
I used MySQL pretty extensively for a few years, but never really stepped outside of the bounds of what it should be good at
(especially when it comes to MySQL or Oracle)
@rfusca the boundaries just clearly shrunk
17:36
rather, as soon as I did, I went ".....that sucks...there must be something better' and then switched to Postgres
@swasheck you are possibly right
@rfusca smart move
ya, I tend not to tie myself to software. If I think there's something better out there and I've got the option, I'll learn something new
@rfusca i'm still not sure how you are able to work with oracle, though
this tsnames thing is frustrating.
@swasheck I die a little inside every day
@swasheck it is, but what are you having issues with?
17:40
@swasheck IIRC, an instantclient install is a single directory, and it doesn't create any other directories (eg; $ORACLE_HOME/network/admin ) for you. I think the instantclient works fine with a tnsnames.ora plonked into the installation directory
@rfusca trying to create a linked server with teh 11g instantclient
@Phil no ... that's very true that it does not :) i'll try plopping it in there
@swasheck Think you'll have to use a full client install for a linked server, but i could be wrong
@Phil which means pulling the full installer, right? not just the "client?"
@swasheck set the TNS_ADMIN environmental variable to the folder with it
it's neat that Oracle prepends itself to the PATH
17:43
@swasheck On the other hand, he offered a 100rep bounty. Normally it'd be telling—however, I'm not sure about this one.
i think he wants help in the sense that he wants a "Just type this in and it will magically work for MySQL" and maybe that's what Roland's will do
but he clearly doesn't want to argue the merits of why he wants to do that
I predict Rolando's is going to be similar to the STRAIGHT_JOIN that doubled the time
@rfusca well, in fairness ... he did push back on me when i asked "why not just use postgres?"
It seems silly that there's an argument over the PK....it'd have been quicker by now to just add them and test
@rfusca this is why I left the latest comment
17:48
@dezso ya
18:20
@rfusca No, it's not that dumb. I'm surprised that Rolando suggests that.
@ypercube ya
for the 32TB postgres q:
In terms of answering your actual question, the best bet for what amounts to trying to change the internal postgres code and recompile is to ask on the postgres mailing list. Getting an answer from somebody like Tom Lane is what I'd do before I attempted to do something this drastic. But you'll likely get the same "why in the world would you want to" response. — rfusca 1 min ago
i like erwin. he's level-headed and wicked smart
@swasheck agreed
Exhibit A:
7
A: How do I preserve the order of the original elements in an unnested array?

Erwin BrandstetterFor a single string You can apply the window function row_number() to remember a distinct order of elements. However, with the usual row_number() OVER (ORDER BY col) you get numbers according to the sort order, not the ordinal number of the original position in the string. You could try and sim...

18:38
This answer seems so random for this question:
0
A: MySQL vs SQL Server Express (Compare Free DBMS)

Aaron Kempfif you're migrating from Access to SQL, I really reccomend you look at Client-Server migraition options for SQL Server Express. I think that this is an AWESOME platform, and it should allow you to easily bring your application to the next level. SQL Server Express is AWESOME, I use it and freque...

@rfusca that's Aaron ... he's a troll ... a bad one, at that. he was the straw that broke @AaronBertrand s back
@swasheck ah, ic
I wanted to ask that question for a time now.
Where is @Aaron?
@ypercube gone. i think that he's just fed up with the subculture of SE/SO. it is what it is. plus, he was at SQL PASS in Las Vegas last week
@rfusca: If he didn't add those AWESOME and kept only the first line of his answer...
18:50
@ypercube I asked similar questions from myself: where is Simon? where is Chris?
@ypercube I just love it how specifying the number of databases attached to it is somehow a meaningful metric
@dezso <------ my name is Chris ;)
I wonder why he stayed at the 100. He did want to have more than a 20000 at a time.
@ypercube I think "I have 20k databases attached" loses credibility compared to 100
@rfusca gotcha!
@rfusca how to i remove an Oracle home?
19:01
@swasheck run the installer and 'deinstall'
@rfusca riiiiight ... doesnt exist. downloaded the deinstaller and ran with the flag -home T:\app... which did everything but remove the registry entries
nvm ... fortunately this is DEV :)
@swasheck lol
probably wise rather than a single 32tb table:
@rfusca man ... trying to get this to work is mind-numbing :)
19:06
That sounds much like/like much work. But since Apache License 2 seems to be free for commercial apps: I just read at Apache Cassandra's website there are Cassandra clusters at 300 TB sizes, which sounds like quite enough. — user1301036 10 mins ago
@swasheck lol thats oracle ...numb your mind so that writing the check seems painless
@rfusca brush up on your RoR
@rfusca i'm beginning to think that their installation process is so difficult just so that they can squeeze clients for even more $$
@swasheck absolutely
and i thought that pg_hba.conf was hard to master
thats all the Oracle certification really is...its nothing to do with performance or anything..."Can you actually install Oracle? Yes, bam CERTIFIED "
6
psh ... installing drivers for a linked server makes pg access look like 1+1
19:09
LOL
@swasheck haha, back in the olden days, I tried to install Oracle9 onto a Solaris (5.9 perhaps). 3 CD set, after finishing with the first one it asked for the second, but did not eject the disc. It took a while and a few phone calls to get around.
@swasheck so, btw - biblical studies?
@rfusca indeed
how do you get from that to database?
19:20
database came first
@swasheck turned to god after working with databases...understandable
@rfusca me and oracle are about to have a "come-to-jesus moment" in a few minutes
at any rate ... my wife and i were very active in our church and we decided that it was more fulfilling so i decided to go to seminary to start moving in the direction of working in a chuch. i chose an academic degree since that's more my style and along the way decided i'd rather NOT work in a church. i'm the only income in our family so i stuck with DBA work to get myself through school.
@swasheck lol yup
i used a lot of dba/programming things to help me write my thesis
@swasheck gotcha
19:23
and along the way got pretty interested in computational linguistics
so now i'm just working through a phd proposal
interesting
@swasheck what kind of church, if you don't mind me asking
which may, or may not, coincide with a grant for preserving dead languages
@rfusca non-denominational, mostly. my wife grew up methodist and i grew up in a cult
we moved to Colorado where religion and denominations are roundly mocked
@swasheck nod indeed
so our primary experience with church has been non-d
nod i'm non-d, but grew up Lutheran
19:25
Failed to delete the file 'L:\app\svcsql\product\11.2.0\client_1\inventory\invDetails.properties'. The file is in use. but it's not ... i love you windows ... i love you oracle ...
my church from arkansas (before I moved to atlanta) was seeded from a non-d church in CO
@rfusca faith bible?
@swasheck love it
@swasheck nope, New Life
@swasheck If Windows says that it's using that file....then it is using that file
@Lamak unlocker to the rescue
19:29
what is a non-d church?
JNK
JNK
non-denominational I think
@Lamak non-denominational - ie, not Catholic, Baptist, Methodist, or any named overarching governing body across many individual churches
This is kind of funny and disappointing.
Happy to hear that. :) It's strange, something like when you buy a house, oneday you come in and see someone else suddenly is living there! ;D I could have change the code if you had helped me a little. Cheers bro. — Mohammad Goudarzi 51 secs ago
Quick question. I will probably make this into a question does anyone know of a way to trace back and see who has modified a job.
@ypercube thats just an odd series of comments
@Zane what database
19:37
MS SQL server
2008 R2
@rfusca oh
i get it
@Zane change tracking on MSDB???
@Lamak :D
@rfusca We don't have many of those over here
@Lamak hmm interesting
they're popping up all over the place here
often the music and worship is more 'modern' and there's much less structure overall
19:41
@rfusca communion with pizza and beer ...
@rfusca here if you here 'reverend' you can guess that it refers to two or three churches
Basically what happened is on a developer box which all of the devolopers log into the same account.(I know that absolutely blows and they all have SA...Nothing I can do about that) I build a job that would run two stored procedures every minute. Someone changed the data base these sprocs run on and I want to find out who did it or at least when it happened.
well, I wouldn't really know, since I'm not very interested either
@Zane you've asked this before, right? i thought it was an SSIS package
@rfusca there are a few non-denominational churches as well, but outside the membership (or what would be the proper noun) not too many people have ever heard about those
19:43
@swasheck well...not quite that much ;)
@Zane it really sounds like you need to put some auditing on your MSDB database - but that's going to suck
@dezso ic
they're quite large here
my non-denominational church here has over 25k members
@swasheck no but I have asked a question about SSIS but I figured that out.
@swasheck I was worried about that.
@rfusca just noticed what this means
@dezso i thought it was an acronym from Ice Cream
19:46
interstitial cystitis
man ... what's up with the world?? John McAffee ... Elmo ...
lol
@rfusca Well, if I remember correcty, over here we are one of the most catholic countries like, ever
and what kind of support is this???
@mike_walsh Fingers crossed that the new driver is the answer! Let us know if you need anything else.
@Lamak yup
19:48
and if we talk about christianism, that number rises even more
@rfusca Are we talking about the same country? :-)
@swasheck who? where?
@Lamak eh?
@rfusca @Lamak = Chile ... very catholic @rfusca = USA
@swasheck yeap, that's what I meant
19:53
@swasheck right? he was saying chile was very catholic and I agreed with 'yup' ...cuz i knew it was
@rfusca right ... i gathered that ... just wanted to baseline everyone
ah, k
@swasheck huh?
@rfusca Oh, I was just clarifying that point
ok, thats confusing...because oracle owns mysql now. if you look up 'oracle slow query logging' - you get a bunch of mysql stuff
19:54
@MikeWalsh your vendor's support consists of crossing fingers :)
and @ypercube = Greece, very orthodox ...
@swasheck Yeah.. I liked that.. That's why I told my client "Send back those Q-Logic 10Gig cards.. Let's go with Emulex.."
@ypercube ver' orthodox ... it was interesting rolling through the streets of athens with the juxtaposition the orthodox heritage and the signs for upcoming porn convention
@swasheck So who are you on twitter anyway? Pretty neat to see you answer questions in DBA.se and Hermeneutics :-) Interesting to see the church discussion in here, too.. Missed it earlier.
good gracious , the lengths people will go to before they just research something. I see this query with an 'odd' program source in Oracle. So I email the dev and I'm like "whats that?" "Well, the query was taking a long time in Oracle SQL Developer, so I just wrote a program to run it instead of running it in sql dev"....
sigh
19:58
@MikeWalsh i'm really not that smart or worth following. i just stick around to watch the experts do their thing
and there you have it
@swasheck there too
:6863968 That's my story as well :-)
@Zane any traction on the jobs i sent you?
@swasheck Are you...talking with yourself now?
@Lamak the voices in my head DEMAND an answer
05:00 - 20:0020:00 - 00:00

« first day (678 days earlier)      last day (4488 days later) »