SQL> alter user user01 identified by 1arkspur
*
ERROR at line 1:
ORA-00922: missing or invalid option
Then I tried with double quotes;
alter user sim01 identified by "1arkspur"
The issue is password first character is numeric one "1".
Question:
------------------------------------------------------------------------------------------------------------------------------------------------------
How to use the double quotes on the SQL Script file for the password? The issue is password first character is numeric one "1".
Example
sqlplus -s << _proc 2>&1
sys/password@TestDB as sysdba
set lines 200
set pages 60
spool pwd_change.lst
set heading off
select 'Oracle Server and Curr Date: '|| instance_name||' '||'${CNTY_CD}'||' '
||to_char(sysdate, 'yyyymmdd_HH24MISS')||'.' from v\$instance;
NW_USER01_PASSWD='1arkspur'
NW_USER02_PASSWD='1arkspur'
*alter user user01 identified by ${NW_USER01_PASSWD};*
*alter user user02 identified by ${NW_USER02_PASSWD};*
spool off;
exit
Edited by: Sivaprasad S on Mar 18, 2013 5:08 PM