.ora-code.com

Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
Change username in DBA_USERS

Change username in DBA_USERS

2005-10-01       - By Chirag DBA
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

D O N E ..... ! ! ! ! !
was thinking of changing the ownership column first.
But see, this works, with not a single error or warning in TRACE file.

SQL> select user#,name from user$ where name like 'SCOT%';

USER# NAME
-- ---- -- -- ---- ---- ---- ---- ---- --
59 SCOTT
64 SCOTT1

SQL> update user$ set name='HERMESNEW' where user#=64;

1 row updated.

SQL> commit;

Commit complete.

SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area 105978600 bytes
Fixed Size 453352 bytes
Variable Size 79691776 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
Database mounted.
Database opened.
SQL> select user#,name from user$ where name like 'SCOT%';

USER# NAME
-- ---- -- -- ---- ---- ---- ---- ---- --
59 SCOTT

SQL> select user#,name from user$ where name like 'HER%';

USER# NAME
-- ---- -- -- ---- ---- ---- ---- ---- --
65 HERMES
64 HERMESNEW

SQL> select username from dba_users where username like 'HER%';

USERNAME
-- ---- ---- ---- ---- ---- --
HERMES
HERMESNEW

SQL> alter user hermesnew identified by chirag;

User altered.

SQL> conn hermesnew/chirag
Connected.
SQL> select * from tab;

TNAME TABTYPE CLUSTERID
-- ---- ---- ---- ---- ---- -- -- ---- -- ---- --
BONUS TABLE
CHIRAG TABLE
DEPT TABLE
EMP TABLE
SALGRADE TABLE
TEMP1 TABLE

6 rows selected.

SQL> sho user
USER is "HERMESNEW"
SQL>

Thanx to everyone....

Regards - Chirag
On 10/1/05, Chirag DBA <chiragdba@(protected)> wrote:
>
> hmmmm...!!!
>  Its a large dump, takes more than 5 hrs. so thinking to get it in "SHORT
> WAY".
>  Export problem was because of replicated objects.
>  can afford to have a corruption on my local test database.
>
> regards - chirag
>   On 10/1/05, David Sharples <davidsharples@(protected)> wrote:
> >
> > simple, dont do it, not supported, doesnt work and corrupts the data
> > dictionary and oracle support would tell you to go away.
> >   Any good person will tell you to stop right now and do it the proper
> > way
> >  Fromuser / touser export is the only way of doing it, so fix your
> > export problems.
> >
> >
> >  On 10/1/05, Chirag DBA <chiragdba@(protected) > wrote:
> > >
> > > Its not a joke and am doing this on test.
> > >  I remember one incident on LAZYDBAs , where a DBA did programming on
> > > USER_ID and then required to change the USER_ID. He did it someway, but I
am
> > > unable to recollect.
> > >  There must be the way we can do. ( I think so).
> > >
> >
>

<div>D O N E ..... ! ! ! ! ! </div>
<div>&nbsp;</div>
<div>was thinking of changing the ownership column first. </div>
<div>But see, this works, with not a single error or warning in TRACE file.<
/div>
<div>
<p>SQL&gt; select user#,name from user$ where name like 'SCOT%';</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; USER# NAME<br>-- ---- -- -- ---- ---- ---- ---- ---
----<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 59 SCOTT<br>&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp; 64 SCOTT1</p>
<p>SQL&gt; update user$ set name='HERMESNEW' where user#=64;</p>
<p>1 row updated.</p>
<p>SQL&gt; commit;</p>
<p>Commit complete.</p>
<p>SQL&gt; shutdown immediate;<br>Database closed.<br>Database dismounted.<br
>ORACLE instance shut down.<br>SQL&gt; startup<br>ORACLE instance started.</p>
<p>Total System Global Area&nbsp; 105978600 bytes<br>Fixed Size&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; 453352 bytes<br>Variable Size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 79691776 bytes<br>Database
Buffers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 25165824
bytes<br>Redo Buffers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 667648 bytes
<br>Database mounted.<br>Database opened.<br>SQL&gt; select user#,name from
user$ where name like 'SCOT%';</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; USER# NAME<br>-- ---- -- -- ---- ---- ---- ---- ---
----<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 59 SCOTT</p>
<p>SQL&gt; select user#,name from user$ where name like 'HER%';</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; USER# NAME<br>-- ---- -- -- ---- ---- ---- ---- ---
----<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 65 HERMES<br>&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 64 HERMESNEW</p>
<p>SQL&gt; select username from dba_users where username like 'HER%';</p>
<p>USERNAME<br>-- ---- ---- ---- ---- ---- --<br>HERMES<br>HERMESNEW</p>
<p>SQL&gt; alter user hermesnew identified by chirag;</p>
<p>User altered.</p>
<p>SQL&gt; conn hermesnew/chirag<br>Connected.<br>SQL&gt; select * from tab;</p>
<p>TNAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
TABTYPE&nbsp; CLUSTERID<br>-- ---- ---- ---- ---- ---- -- -- ---- -- ---- --<br
>BONUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
TABLE<br>CHIRAG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; TABLE<br>DEPT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; TABLE
<br>EMP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; TABLE<br>SALGRADE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; TABLE<br>TEMP1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; TABLE</p>
<p>6 rows selected.</p>
<p>SQL&gt; sho user<br>USER is &quot;HERMESNEW&quot;<br>SQL&gt;</p>
<p>Thanx to everyone....</p>
<p>Regards - Chirag<br></p></div>
<div><span class="gmail_quote">On 10/1/05, <b class="gmail_sendername">Chirag
DBA</b> &lt;<a href="mailto:chiragdba@(protected)">chiragdba@(protected)</a>&gt;
wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0
.8ex; BORDER-LEFT: #ccc 1px solid">
<div>hmmmm...!!! </div>
<div>&nbsp;</div>
<div>Its a large dump, takes more than 5 hrs. so thinking to get it in &quot
;SHORT WAY&quot;.</div>
<div>&nbsp;</div>
<div>Export problem was because of replicated objects.</div>
<div>&nbsp;</div>
<div>can afford to have a corruption on my local test database.<br><br>regards
- chirag </div>
<div><span class="e" id="q_106ad10ef8ed1008_1">
<div>&nbsp;</div>
<div><span class="gmail_quote">On 10/1/05, <b class="gmail_sendername">David
Sharples</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href
="mailto:davidsharples@(protected)" target="_blank">davidsharples@(protected)
</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0
.8ex; BORDER-LEFT: #ccc 1px solid">
<div>simple, dont do it, not supported, doesnt work and corrupts the data
dictionary and oracle support would tell you to go away.</div>
<div>&nbsp;</div>
<div>
<div>Any good person will tell you to stop right now and do it the proper way<
/div>
<div>&nbsp;</div></div>
<div>Fromuser / touser export is the only way of doing it, so fix your export
problems.</div>
<div><span>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 10/1/05, <b class="gmail_sendername">Chirag
DBA</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href=
"mailto:chiragdba@(protected)" target="_blank">chiragdba@(protected)</a>
&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0
.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Its not a joke and am doing this on test.</div>
<div>&nbsp;</div>
<div>I remember one incident on LAZYDBAs , where a DBA did programming on USER
_ID and then required to change the USER_ID. He did it someway, but I am unable
to recollect.</div>
<div>&nbsp;</div>
<div>There must be the way we can do. ( I think so).</div></blockquote></div><
/span></div></blockquote></div><br></span></div></blockquote></div><br>