2

I'm trying to create a database link form an Oracle server to another. The command I'm using is:

 create public database link mylink connect to myuser identified by 0000 authenticated by myuser identified by 0000 using 'myTNSNameRemoteServer';

sqlplus give me this error:

ERROR at line 1:
ORA-00933: SQL command not properly ended

Putting the '*' under the first character of the password in its first instance.

Have I to escape it in someway?

Thanks

1

3 Answers 3

5

The solution was to double quote the password:

create public database link mylink connect to myuser identified by "0000" authenticated by myuser identified by "0000" using 'myTNSNameRemoteServer';
Sign up to request clarification or add additional context in comments.

1 Comment

Even though there are another correct answers, this is the explicit one, so this should be marked as correct.
3

you can try this:

CREATE DATABASE LINK "dblink_name"
             CONNECT TO "user_user"
             IDENTIFIED BY "user_pass"
             USING '(DESCRIPTION =
                (ADDRESS_LIST =
                  (ADDRESS = (PROTOCOL = TCP)(HOST = "user_server" )(PORT ="user_port" ))
                )
                (CONNECT_DATA =
                  (SERVICE_NAME = "user_service_name")
                  (SRVR = DEDICATED)
                )
              )' ;

Comments

0

Try this one: CREATE DATABASE LINK ABCD CONNECT TO USER IDENTIFIED BY PASSWORD USING 'DBALIASAME';

4 Comments

I think that the problem is the password, that as you can see is a sequence of four 0 (number). What I wrote is not a fake password sadly.
@StefaniaLori I've tried to create a user with password '0000' and it doesn't allow to create at the first instance, so if you have any other user with you, could you please with that one else get your password reset to something else :)
Unfortunately I can't change the user password because it is a production database, but I tried the same db link with another user, with a simple password and it worked perfectly.
thats great, you got the solution finally :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.