![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Create another user and create tables so they are owned by this user. create user ABC identified by ABC default tablespace USERS temporary tablespace TEMP; grant CONNECT,RESOURCE to ABC; After that connect as ABC/ABC and create tables, indexes, etc. |
#4
| |||
| |||
|
|
Hi, I am running a shell script which call a perl script which uses DBI to connect to a remote (ie another server) which creates schemas ie table spaces, users, tables in the waiting DB. Or rather it does not: Database Connection Error: ORA-28009: connection as SYS should be as SYSDBA or SYSOPER (DBD ERROR: OCISessionBegin) The problem is as follows: ./create_stuff.sh<database type> <database name> <host> <username password> <port I ran one of the many scripts locally on the unix command line with the hardcoded string "sqlplus sys as sysdba/bloggs" and that works OK. The problem is that the shell script, calls more shell scripts, calls perl scripts and passing in "sys" as a parameter fails at the Oracle 10G level cos we need the AS sysdba. And if I call the script with "sys as sysdba" "bloggs" (or similar tried a few things) it goes wrong big time. Possibly the answer is to create a user that has the powers of "sys as sysdba" or something similar. But I am stuck really... can anyone help plz? Syd |
#5
| |||
| |||
|
|
Hi, I am running a shell script which call a perl script which uses DBI to connect to a remote (ie another server) which creates schemas ie table spaces, users, tables in the waiting DB. Or rather it does not: Database Connection Error: ORA-28009: connection as SYS should be as SYSDBA or SYSOPER (DBD ERROR: OCISessionBegin) The problem is as follows: ./create_stuff.sh <database type> <database name> <host> <username password> <port I ran one of the many scripts locally on the unix command line with the hardcoded string "sqlplus sys as sysdba/bloggs" and that works OK. The problem is that the shell script, calls more shell scripts, calls perl scripts and passing in "sys" as a parameter fails at the Oracle 10G level cos we need the AS sysdba. And if I call the script with "sys as sysdba" "bloggs" (or similar tried a few things) it goes wrong big time. Possibly the answer is to create a user that has the powers of "sys as sysdba" or something similar. But I am stuck really... can anyone help plz? Syd |
#6
| |||
| |||
|
|
Try this: username: "sys", database name "DBNAME as sysdba" Shakespeare |
#7
| |||
| |||
|
|
Hi, I am running a shell script which call a perl script which uses DBI to connect to a remote (ie another server) which creates schemas ie table spaces, users, tables in the waiting DB. Or rather it does not: Database Connection Error: ORA-28009: connection as SYS should be as SYSDBA or SYSOPER (DBD ERROR: OCISessionBegin) The problem is as follows: ./create_stuff.sh <database type> <database name> <host> <username password> <port I *ran one of the many scripts locally on the unix command line with the hardcoded string "sqlplus sys as sysdba/bloggs" and that works OK. The problem is that the shell script, calls more shell scripts, calls perl scripts and passing in "sys" as a parameter fails at the Oracle 10G level cos we need the AS sysdba. And if I call the script with "sys as sysdba" *"bloggs" (or similar tried a few things) it goes wrong big time. Possibly the answer is to create a user that has the powers of "sys as sysdba" or something similar. But I am stuck really... can anyone help plz? Syd |
#8
| |||
| |||
|
|
Have you set things up so someone can connect remotely as sys there? Connecting locally merely means the local user has group rights. |
#9
| |||
| |||
|
|
On Mon, 15 Feb 2010 11:33:40 -0800, joel garry wrote: Have you set things up so someone can connect remotely as sys there? Connecting locally merely means the local user has group rights. The OP has asked the same question on the DBI group and Jared Still, of the "Perl for an Oracle DBA" fame, has given him the same answer I did.. --http://mgogala.byethost5.com |
#10
| |||
| |||
|
|
Op 14-2-2010 23:45, syd_p schreef: Hi, I am running a shell script which call a perl script which uses DBI to connect to a remote (ie another server) which creates schemas ie table spaces, users, tables in the waiting DB. Or rather it does not: Database Connection Error: ORA-28009: connection as SYS should be as SYSDBA or SYSOPER (DBD ERROR: OCISessionBegin) The problem is as follows: ./create_stuff.sh<database type> <database name> <host> <username password> <port I ran one of the many scripts locally on the unix command line with the hardcoded string "sqlplus sys as sysdba/bloggs" and that works OK. The problem is that the shell script, calls more shell scripts, calls perl scripts and passing in "sys" as a parameter fails at the Oracle 10G level cos we need the AS sysdba. And if I call the script with "sys as sysdba" "bloggs" (or similar tried a few things) it goes wrong big time. Possibly the answer is to create a user that has the powers of "sys as sysdba" or something similar. But I am stuck really... can anyone help plz? Syd Try this: username: "sys", database name "DBNAME as sysdba" |
ra_session_modes);![]() |
| Thread Tools | |
| Display Modes | |
| |