PDA

View Full Version : difference of sqlplus in hp than sun


Ana C. Dent
07-04-2003, 04:29 PM
victor tsien wrote: I have a script in unix. However, different results came after running in two machines. Anybody know why? The script is very simple: -------------------------------- #!/usr/bin/ksh sqlplus scott/tiger << EOF spool result.txt select * from v$session where username ='scott'; spool off exit EOF ------------------------------- in HP UX, the result is: SQL > select * from v$session where username ='scott'; In sun solaris: SQL > select * from v$session where username ='scott'; SADDR SID SERIAL# AUDSID PADDR -------- ---------- ---------- ---------- -------- 6861207C 1 1 0 685EAFE0 686129EC 2 1 0 685EB3A0 6861335C 3 1 0 685EB760 68613CCC 4 1 0 685EBB20 6861463C 5 1 0 685EBEE0 68614FAC 6 1 0 685EC2A0 6861591C 7 1 0 685EC660 6861628C 8 1 0 685ECA20 68616BFC 9 752 0 685ED920

You have WEIRD results all around.
FWIW - V$SESSION has many, many more columns than the 5 displayed.
I suspect that SCOTT might even have a private synonym for V$SESSION.
In the future ALWAYS include Oracle Version(s)!


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service