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

Thread: how to secure password in db_links

  1. #1
    Join Date
    May 2005
    Location
    Boracay
    Posts
    681

    how to secure password in db_links

    Hi Davey & Friends

    I have created a database links to other server but when
    I select * from user_db_links i can see the user password.
    Can it be hidden or decripted?


    Thanks

  2. #2
    Join Date
    May 2003
    Location
    Pretoria, Rep of South Africa
    Posts
    191
    DBLINK_ENCRYPT_LOGIN specifies whether or not attempts to connect to other Oracle servers through database links should use encrypted passwords.

    This should help
    Able was I ere I saw Elba

  3. #3
    Join Date
    Feb 2003
    Location
    Leeds, UK
    Posts
    367
    Create an account on the other database with the same username and password:

    Code:
    username@DEVLDB> create database link test using 'TESTDB';
    
    Database link created.
    
    username@DEVLDB> select sysdate from dual@test;
    
    SYSDATE
    ---------
    15-MAR-06
    
    username@DEVLDB> select username, password from user_db_links where db_link = 'TEST';
    
    USERNAME                       PASSWORD
    ------------------------------ ------------------------------
    
    
    username@DEVLDB>

  4. #4
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Quote Originally Posted by hacketta1
    Create an account on the other database with the same username and password:
    IMHO, that's the best way to do it. It forces you to be authenticated against the remote db. Sometimes it makes calling packages on the remote instance a little tricky, but nothing you can't get around.
    Jeff Hunter

  5. #5
    Join Date
    May 2005
    Location
    Boracay
    Posts
    681
    Thanks friends,

    I'm a lil' bit confused though...

    Say if I have connect string in TNSNAMES.ORA which is ORA10G.

    What i did before was:

    sql> create database link ORA10G_LNK connect to scott identified by tiger using 'ORA10G';

    Do u mean to encrypt password i can do it this way?

    sql> create database link ORA10G_LNK using 'ORA10G';

    How do I know which schema should i get the table from in case
    they have the same table name?

    Do i have to qualify it like this:

    select * from scott.emp@ora10g_lnk;
    select * from user1.emp@ora10g_lnk;


    Thanks

  6. #6
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    it connects to the same schema as what you are in now

  7. #7
    Join Date
    May 2000
    Location
    India
    Posts
    18
    Create OPS$ user id on both the DBs and use this userid in DB link. So you need not to worry if password of this user is modified.

  8. #8
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    Quote Originally Posted by bhas
    Create OPS$ user id on both the DBs and use this userid in DB link. So you need not to worry if password of this user is modified.
    errrr no

  9. #9
    Join Date
    Feb 2003
    Location
    Leeds, UK
    Posts
    367
    I select * from user_db_links i can see the user password. Can it be hidden or decripted?
    Do u mean to encrypt password i can do it this way?
    The method I showed you hides the password. In 9iR2 onwards the default behaviour is encrypt all password exchanges. In other words, you control the appearance of a password in user_db_links via how you create the database link. In terms of how the password is sent across the network, it is encrypted by default in 9iR2. In lower versions use dblink_encrypt_login (you receive a warning if you set this in 9iR2+).

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