Import with OS-User [message #523635] |
Mon, 19 September 2011 10:14 |
|
Karlia
Messages: 40 Registered: May 2011 Location: Algiers
|
Member |
|
|
Hi everybody,
I want to know if it is possible, to run IMP program without connecting with database user , for example :
imp \'/ as sysdba\' file=f.dmp fromuer=u1 touser=u2 log=flog.log
that permits to perform scripts without passwords in.
i hope my questio clear.
Thanks to every body.
|
|
|
|
|
|
|
|
|
Re: Import with OS-User [message #523843 is a reply to message #523841] |
Tue, 20 September 2011 10:24 |
|
Michel Cadot
Messages: 68731 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Michel Cadot wrote on Mon, 19 September 2011 17:29And instead of using "/ as sysdba", create a OS identified account with DBA role.
Quote:it works perfectly well
No, it seems to work and you may have some problems you will not understand.
- Never ever use SYS (or SYSDBA) but for maintenance purpose (startup, shutdown, backup, recover)
- SYS/SYSDBA is special
- SYS/SYSDBA is Oracle proprietary (try to open a SR/TAR starting with "i did that with SYS/SYSDBA" and you'll see the immediate answer)
- SYS/SYSDBA does not act like any other user
- When you use SYS/SYSDBA Oracle deactivates some code path and activates others
- Whatever you do with SYS/SYSDBA will neither validate nor invalidate the same thing with any other user.
NEVER EVER use SYS/SYSDBA for anything that can be done by another user.
Use SYS/SYSDBA ONLY for something that can't be done by someone else.
Regards
Michel
[Updated on: Tue, 20 September 2011 10:25] Report message to a moderator
|
|
|
|