Monday, August 24, 2009

How to Change a Database Link Password

How to Change a Database Link Password

A database link allows you to access another database from the Oracle database. The remote database does not have to be an Oracle database. The link can be used to access the tables and views of the remote database using the Select, Insert, Update or Delete statements. The database link can be created with a static password. However, once this password is created, it cannot be altered. Instead, you must drop the original database link and create a second one with the new password.

Difficulty: Moderately Easy

Instructions

1.      Step 1

    Open the SQL*Plus application by typing "sqlplus" at the command line.

2.      Step 2

    Drop the current database link with the "DROP DATABASE LINK name;" statement.

3.      Step 3

    Re-create the database link and change the password by typing the following statement at the "SQL>" prompt:

    CREATE DATABASE LINK name CONNECT TO schema IDENTIFIED BY user USING "newpass";

    Change "name," "schema," "user," and "newpass" to reflect the information for your database link.

4.      Step 4

    Test the link by typing the following statement at the "SQL>" prompt:

    SELECT * FROM table@name;

    Change "table" and "name" to reflect the information for your database link.

5.      Step 5

    Type "exit" to close the SQL*Plus application.

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com

No comments:

Post a Comment

LinkWithin

Popular Posts