How passwords work

DBA Geral (instalação, configuração do banco, scripts do Sql*Plus, shell scripts, batch scripts, etc...)
Post Reply
simoesluciano
Rank: Estagiário Júnior
Rank: Estagiário Júnior
Posts: 2
Joined: Wed, 13 Sep 2006 9:02 am
Location: Vitória

Hello, I am a beginner in Oracle and I have some doubts about its operation. One is:

Users and passwords (sys, sysadmin, ...) are per installation environment or db? That is, if I restore a backup generated on an X machine on a Y machine, should I use which passwords (x and and have different passwords)?


Thanks.
User avatar
dr_gori
Moderador
Moderador
Posts: 5026
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

It has an article in Márcio Portes blog about EXP with passwords. See this: http://mportes.blogspot.com/2006/09/exp ... enhas.html : -The
Sometimes we need to make an Export / Import and bring users and password (originals). For this, there is a small trick using the import file, see Example:

Select all

ops$marcio@YODA10G> !exp / file=users.dmp full=y 
 
Export: Release 10.2.0.2.0 - Production on Fri Aug 18 20:04:48 2006 
 
Copyright (c) 1982, 2005, Oracle.  All rights reserved. 
 
 
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production 
With the Partitioning, OLAP and Data Mining options 
Export done in US7ASCII character set and AL16UTF16 NCHAR character set 
server uses WE8ISO8859P1 character set (possible charset conversion) 
 
About to export the entire database ... 
. exporting tablespace definitions 
. exporting profiles 
. exporting user definitions 
. exporting roles 
. exporting resource costs 
. exporting rollback segment definitions 
. exporting database links 
. exporting sequence numbers 
. exporting directory aliases 
. exporting context namespaces 
. exporting foreign function library names 
. exporting PUBLIC type synonyms           <<<<<-------- FIZ UM CTRL-c AQUI. 
EXP-00008: ORACLE error 1013 encountered ORA-01013: 
user requested cancel of current operation 
EXP-00000: Export terminated unsuccessfully  
 
ops$marcio@YODA10G> !strings users.dmp | grep -i ops$marcio 
CREATE USER "OPS$MARCIO" IDENTIFIED BY VALUES '780383AD56F94137' DEFAULT TABLESPACE "USERS" TEMPORARY TABLESPACE "TEMP" 
GRANT UNLIMITED TABLESPACE TO "OPS$MARCIO" 
GRANT "DBA" TO "OPS$MARCIO" 
ALTER USER "OPS$MARCIO" DEFAULT ROLE ALL
ALAN WILSON RESENDE
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 4
Joined: Tue, 11 Jul 2006 5:54 pm
Location: CURITIBA-PR
Alan Wilson Resende
Oracle Database Administrator

Hi!

SYS and System users passwords are defined by instance.

If you are importing the file for instance X.

Att.

Alan Resende
Oracle DBA.
Curitiba-PR.
ALAN WILSON RESENDE
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 4
Joined: Tue, 11 Jul 2006 5:54 pm
Location: CURITIBA-PR
Alan Wilson Resende
Oracle Database Administrator

Sorry.

I did not finish my sentence.

SYS and System users passwords are defined by instance.

If you are importing the file for X instance you must use the password of this instance.

Att.
simoesluciano
Rank: Estagiário Júnior
Rank: Estagiário Júnior
Posts: 2
Joined: Wed, 13 Sep 2006 9:02 am
Location: Vitória

But this is too bad. If I have access to a backup file and restore on a local machine with a installation made by me I will have access to data without major difficulties.

or am I mistaken?
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest