Solved

SQLPlus password entry

Posted on 2014-09-25
5
510 Views
Last Modified: 2014-09-30
I recently installed Oracle 12c on a WIndows server for an application which uses it, and created two databases with SYSTEM password ending with an exclamation mark. I am now trying to get back into the database some weeks later using SQLPlus to do some administration, and keep getting "ORA-01017: invalid username/password; logon denied" messages.

I know the passwords have not changed as if I use the Oracle Administration Assistant for Windows I can connect to both databases by entering SYSTEM and the appropriate password, so the issue must be related to the ! character

I have tried putting double quotes round the password but this makes no difference - any ideas?
0
Comment
Question by:rjebb
5 Comments
 
LVL 23

Expert Comment

by:David
Comment Utility
Confirm you have correctly set the ORACLE_SID value.  Since you are trying a different method to connect, that's easy to overlook.

Confirm your typing (sorry, it does happen).

Provide us with the full command you're trying (mask the password)

Try an interactive session with one string at a time, for example:
$ORACLE_HOME/bin/sqlplus
at user prompt, just the username
at password prompt, just the password
0
 
LVL 15

Expert Comment

by:Haris Djulic
Comment Utility
Issue is related to exclamation mark for sure since :

Nonquoted identifiers can contain only alphanumeric characters from your database character set and the underscore (_), dollar sign ($), and pound sign (#). Database links can also contain periods (.) and "at" signs (@). Oracle strongly discourages you from using $ and # in nonquoted identifiers.

You can connect to database as Sys from sqlplus and change password...
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
Comment Utility
I just created a user on my 12c system and had to use double quotes around the password.

Make sure the character case is the same.

When in doubt, change the system passwords.

SQL> create user bob identified by "password!";

User created.

SQL> grant create session to bob;

Grant succeeded.

SQL>

Open in new window


The connect:
C:\>sqlplus bob/"password!"@mydb

SQL*Plus: Release 12.1.0.1.0 Production on Thu Sep 25 08:37:26 2014

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Last Successful login time: Thu Sep 25 2014 08:36:00 -04:00

Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing opt
ions

SQL>

Open in new window

0
 

Accepted Solution

by:
rjebb earned 0 total points
Comment Utility
I have just actually figured it out, I was following someone else's instructions for setting archivelog mode on which requires DBA mode access. I have been trying to login as SYSTEM AS SYSDBA rather than SYS AS SYSDBA. But I do need to put double quotes round the password for it to work, ie

sqlplus SYS/"<pwd ending in !>"@<database> AS SYSDBA
0
 

Author Closing Comment

by:rjebb
Comment Utility
I fugured out the answer myself, and the expert advice did not assist me in reaching the answer
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now