DBAsupport.com Forums - Powered by vBulletin
Results 1 to 6 of 6

Thread: exporting a user without password in connection parameter??

  1. #1
    Join Date
    Jul 2006
    Posts
    96

    exporting a user without password in connection parameter??

    hi,

    I want to export using exp command from oracle 9i .
    I want to export a perticular user.

    e.g exp system/system owner = scott file = c:\myfile.dmp

    here i dont want to give password in export commnad.so that
    we can make it confidential.
    how to achive this? plz suggest.

    by madhu

  2. #2
    Join Date
    Mar 2006
    Location
    Charlotte, NC
    Posts
    865
    you can use par file or if you are not giving password it will ask you for the password (manual intervention).

    Regards,
    Vijay Tummala

    Try hard to get what you like OR you will be forced to like what you get.

  3. #3
    Join Date
    Jul 2006
    Posts
    96

    exporting a user in oracle without using password

    hi, thanks for you reply.
    Actually my requirement is I want to do the automatic exporting by making it a batch file.
    In that batch file i dont want to mention any password
    any where. How to ahieve this? I heard we can do this
    using '/' dba. If you know the syntax plz give.

    with thanks

    madhu

  4. #4
    Join Date
    Mar 2006
    Location
    Charlotte, NC
    Posts
    865
    yes you can. some thing like below ...

    exp '\"/ as sysdba\"'

    you need to do some R&D depends on your Oracle version.

    Regards,
    Vijay Tummala

    Try hard to get what you like OR you will be forced to like what you get.

  5. #5
    Join Date
    Jul 2002
    Location
    Lake Worth, FL
    Posts
    1,492

    Cool

    Quote Originally Posted by madhugp View Post
    ...Etc ...
    In that batch file i dont want to mention any password
    any where. How to ahieve this? I heard we can do this
    using '/' dba. If you know the syntax plz give.
    Here is sample script:

    Code:
    DROP USER "OPS$ORACLE" CASCADE;
    CREATE USER "OPS$ORACLE"
      IDENTIFIED EXTERNALLY
      DEFAULT TABLESPACE USERS
      TEMPORARY TABLESPACE TEMP
      PROFILE DEFAULT
      ACCOUNT UNLOCK;
    
      GRANT DBA TO "OPS$ORACLE";
      ALTER USER "OPS$ORACLE" DEFAULT ROLE ALL;
    "The person who says it cannot be done should not interrupt the person doing it." --Chinese Proverb

  6. #6
    Join Date
    Jul 2006
    Posts
    195
    Once you have your OPS$oracle login created as per lkbrown
    last post you can than do something like this as that user or from it's
    crontab.

    exp / options.......

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width