If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Error Code 1062 and 1053

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-26-06, 11:32
phimalaya phimalaya is offline
Registered User
 
Join Date: Dec 2006
Posts: 5
Error Code 1062 and 1053

hello,

you may know about MySQL Error Codes 1062 (ER_DUP_ENTRY) and 1053 (ER_SERVER_SHUTDOWN).

i want to find out the corresponding error codes in Oracle and MS SQL. what are they?

thanks for your quick response.
Reply With Quote
  #2 (permalink)  
Old 12-26-06, 15:07
Littlefoot Littlefoot is offline
Lost Boy
 
Join Date: Jan 2004
Location: Croatia, Europe
Posts: 3,629
I use Oracle, but I have no idea what "ER_DUP_ENTRY" or "ER_SERVER_SHUTDOWN" might be. Also, if you were too lazy to describe those errors, I must admit that I'm too lazy to search through MySQL error database in order to give you possible corresponding error codes in Oracle.
Reply With Quote
  #3 (permalink)  
Old 12-26-06, 15:35
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
i agree

and this was the wrong forum, too

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #4 (permalink)  
Old 12-27-06, 08:54
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,246
well what you could do is write some SQL that cuases these faults, then run that SQL on an Oracle DB and trap for the Oracel error Messages. Mind you you could make this into an evolving open source project.... use the same crappy code and run it against say DB2, SQL Server or any other SQL db and report back the error messages.
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #5 (permalink)  
Old 12-27-06, 09:01
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
sql that causes a server shutdown????

got any samples, healdem?

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #6 (permalink)  
Old 12-27-06, 09:45
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,246
Quote:
Originally Posted by r937
sql that causes a server shutdown????

got any samples, healdem?


oooh I dunno... how about deleting all the system objects.. that might do the trick, removing all rights to all objects except for a specific userID, killing a superuser / system userid.


Hey its not my speciality... I like my servers & applcations to be available at all times, but each to their own.....
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #7 (permalink)  
Old 12-27-06, 10:38
Littlefoot Littlefoot is offline
Lost Boy
 
Join Date: Jan 2004
Location: Croatia, Europe
Posts: 3,629
It is quite easy to cause something like this on Oracle - login as SYS and issue

DROP TABLE dual;

That'll do.
Reply With Quote
  #8 (permalink)  
Old 12-28-06, 11:50
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Quote:
Originally Posted by r937
sql that causes a server shutdown????

got any samples, healdem?

SQL Server makes this easy. Just use SHUTDOWN.

-PatP
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On