TIP 04: Duplicating a Database in 10g by Joel Pèrez
Hi OTN Readers!
Everyday I get connection on Internet and one of the first issues that
I do is to open the OTN main page to look for any new article or any
new news about the Oracle Technology. After I open the main page of
OTN Forums and I check what answers I can write to help some people
to work with the Oracle Technology and I decided to begin to write some
threads to help DBAs and Developers to learn the new features of 10g.
I hope you can take advantage of them which will be published here in
this forum. For any comment you can write to me directly to : [email protected] . Apart from your comments you can suggest to me any topic to write an article like this.
Please do not replay this thread, if you have any question related to
this I recommend you to open a new post. Thanks!
The tip of this thread is: Duplicating a Database in 10g
Joel Pérez
http://otn.oracle.com/experts
Step 6: Editing the file generated
The file generated is going to be like this:
Dump file f:\ora9i\admin\copy1\udump\copy1_ora_912.trc
Thu May 20 16:27:37 2004
ORACLE V9.2.0.1.0 - Production vsnsta=0
vsnsql=12 vsnxtr=3
Windows 2000 Version 5.0 Service Pack 4, CPU type 586
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
Windows 2000 Version 5.0 Service Pack 4, CPU type 586
Instance name: copy1
Redo thread mounted by this instance: 1
Oracle process number: 10
Windows thread id: 912, image: ORACLE.EXE
*** SESSION ID:(9.38) 2004-05-20 16:27:37.000
*** 2004-05-20 16:27:37.000
# The following are current System-scope REDO Log Archival related
# parameters and can be included in the database initialization file.
# LOG_ARCHIVE_DEST=''
# LOG_ARCHIVE_DUPLEX_DEST=''
# LOG_ARCHIVE_FORMAT=ARC%S.%T
# REMOTE_ARCHIVE_ENABLE=TRUE
# LOG_ARCHIVE_MAX_PROCESSES=2
# STANDBY_FILE_MANAGEMENT=MANUAL
# STANDBY_ARCHIVE_DEST=%ORACLE_HOME%\RDBMS
# FAL_CLIENT=''
# FAL_SERVER=''
# LOG_ARCHIVE_DEST_1='LOCATION=f:\ora9i\RDBMS'
# LOG_ARCHIVE_DEST_1='MANDATORY NOREOPEN NODELAY'
# LOG_ARCHIVE_DEST_1='ARCH NOAFFIRM SYNC'
# LOG_ARCHIVE_DEST_1='NOREGISTER NOALTERNATE NODEPENDENCY'
# LOG_ARCHIVE_DEST_1='NOMAX_FAILURE NOQUOTA_SIZE NOQUOTA_USED'
# LOG_ARCHIVE_DEST_STATE_1=ENABLE
# Below are two sets of SQL statements, each of which creates a new
# control file and uses it to open the database. The first set opens
# the database with the NORESETLOGS option and should be used only if
# the current versions of all online logs are available. The second
# set opens the database with the RESETLOGS option and should be used
# if online logs are unavailable.
# The appropriate set of statements can be copied from the trace into
# a script file, edited as necessary, and executed when there is a
# need to re-create the control file.
# Set #1. NORESETLOGS case
# The following commands will create a new control file and use it
# to open the database.
# Data used by the recovery manager will be lost. Additional logs may
# be required for media recovery of offline data files. Use this
# only if the current version of all online logs are available.
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "COPY1" NORESETLOGS NOARCHIVELOG
-- SET STANDBY TO MAXIMIZE PERFORMANCE
MAXLOGFILES 50
MAXLOGMEMBERS 5
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 226
LOGFILE
GROUP 1 'C:\COPY1\COPY1\REDO01.LOG' SIZE 10M,
GROUP 2 'C:\COPY1\COPY1\REDO02.LOG' SIZE 10M,
GROUP 3 'C:\COPY1\COPY1\REDO03.LOG' SIZE 10M
-- STANDBY LOGFILE
DATAFILE
'C:\COPY1\COPY1\SYSTEM01.DBF',
'C:\COPY1\COPY1\UNDOTBS01.DBF',
'C:\COPY1\COPY1\CWMLITE01.DBF',
'C:\COPY1\COPY1\DRSYS01.DBF',
'C:\COPY1\COPY1\EXAMPLE01.DBF',
'C:\COPY1\COPY1\INDX01.DBF',
'C:\COPY1\COPY1\ODM01.DBF',
'C:\COPY1\COPY1\TOOLS01.DBF',
'C:\COPY1\COPY1\USERS01.DBF',
'C:\COPY1\COPY1\XDB01.DBF'
CHARACTER SET WE8ISO8859P1
# Recovery is required if any of the datafiles are restored backups,
# or if the last shutdown was not normal or immediate.
RECOVER DATABASE
# Database can now be opened normally.
ALTER DATABASE OPEN;
# Commands to add tempfiles to temporary tablespaces.
# Online tempfiles have complete space information.
# Other tempfiles may require adjustment.
ALTER TABLESPACE TEMP ADD TEMPFILE 'C:\COPY1\COPY1\TEMP01.DBF'
SIZE 41943040 REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;
# End of tempfile additions.
# Set #2. RESETLOGS case
# The following commands will create a new control file and use it
# to open the database.
# The contents of online logs will be lost and all backups will
# be invalidated. Use this only if online logs are damaged.
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "COPY1" RESETLOGS NOARCHIVELOG
-- SET STANDBY TO MAXIMIZE PERFORMANCE
MAXLOGFILES 50
MAXLOGMEMBERS 5
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 226
LOGFILE
GROUP 1 'C:\COPY1\COPY1\REDO01.LOG' SIZE 10M,
GROUP 2 'C:\COPY1\COPY1\REDO02.LOG' SIZE 10M,
GROUP 3 'C:\COPY1\COPY1\REDO03.LOG' SIZE 10M
-- STANDBY LOGFILE
DATAFILE
'C:\COPY1\COPY1\SYSTEM01.DBF',
'C:\COPY1\COPY1\UNDOTBS01.DBF',
'C:\COPY1\COPY1\CWMLITE01.DBF',
'C:\COPY1\COPY1\DRSYS01.DBF',
'C:\COPY1\COPY1\EXAMPLE01.DBF',
'C:\COPY1\COPY1\INDX01.DBF',
'C:\COPY1\COPY1\ODM01.DBF',
'C:\COPY1\COPY1\TOOLS01.DBF',
'C:\COPY1\COPY1\USERS01.DBF',
'C:\COPY1\COPY1\XDB01.DBF'
CHARACTER SET WE8ISO8859P1
# Recovery is required if any of the datafiles are restored backups,
# or if the last shutdown was not normal or immediate.
RECOVER DATABASE USING BACKUP CONTROLFILE
# Database can now be opened zeroing the online logs.
ALTER DATABASE OPEN RESETLOGS;
# Commands to add tempfiles to temporary tablespaces.
# Online tempfiles have complete space information.
# Other tempfiles may require adjustment.
ALTER TABLESPACE TEMP ADD TEMPFILE 'C:\COPY1\COPY1\TEMP01.DBF'
SIZE 41943040 REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;
# End of tempfile additions.
#As you can see, you have there different ways to recreate the controlfile. In Our case, We are going to recreate the controlfiles so:
STARTUP NOMOUNT
CREATE CONTROLFILE SET DATABASE "COPY2" RESETLOGS NOARCHIVELOG
-- SET STANDBY TO MAXIMIZE PERFORMANCE
MAXLOGFILES 50
MAXLOGMEMBERS 5
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 226
LOGFILE
GROUP 1 'C:\COPY2\COPY2\REDO01.LOG' SIZE 10M,
GROUP 2 'C:\COPY2\COPY2\REDO02.LOG' SIZE 10M,
GROUP 3 'C:\COPY2\COPY2\REDO03.LOG' SIZE 10M
-- STANDBY LOGFILE
DATAFILE
'C:\COPY2\COPY2\SYSTEM01.DBF',
'C:\COPY2\COPY2\UNDOTBS01.DBF',
'C:\COPY2\COPY2\CWMLITE01.DBF',
'C:\COPY2\COPY2\DRSYS01.DBF',
'C:\COPY2\COPY2\EXAMPLE01.DBF',
'C:\COPY2\COPY2\INDX01.DBF',
'C:\COPY2\COPY2\ODM01.DBF',
'C:\COPY2\COPY2\TOOLS01.DBF',
'C:\COPY2\COPY2\USERS01.DBF',
'C:\COPY2\COPY2\XDB01.DBF'
CHARACTER SET WE8ISO8859P1
Note: two important issues to denote in the sentence above is the word "SET" instead of "REUSE" and the controlfiles must be recreated in RESETLOG mode because the database must be opened in RESETLOG mode.
If you use the word "REUSE" instead of "SET" the opening of the database is going to request recovery of the datafile of the tablespace system.
So, apply this to recreate the controlfiles:
- Start the service in windows for the database COPY2
- Get connection through SQL*Plus as system
- Shut down the database with shutdown abort
- Start the database up in nomount stage
- apply the sentence to recreate the controlfile.
C:\>SET ORACLE_SID=COPY2
C:\>sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on Thu May 20 16:46:49 2004
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> conn sys as sysdba
Enter password:
Connected.
SQL>
SQL> shutdown abort
ORACLE instance shut down.
SQL>
SQL>
SQL> startup nomount
ORACLE instance started.
Total System Global Area 135338868 bytes
Fixed Size 453492 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
SQL>
SQL>
SQL> CREATE CONTROLFILE SET DATABASE "COPY2" RESETLOGS NOARCHIVELOG
2 -- SET STANDBY TO MAXIMIZE PERFORMANCE
3 MAXLOGFILES 50
4 MAXLOGMEMBERS 5
5 MAXDATAFILES 100
6 MAXINSTANCES 1
7 MAXLOGHISTORY 226
8 LOGFILE
9 GROUP 1 'F:\COPY2\COPY2\REDO01.LOG' SIZE 10M,
10 GROUP 2 'F:\COPY2\COPY2\REDO02.LOG' SIZE 10M,
11 GROUP 3 'F:\COPY2\COPY2\REDO03.LOG' SIZE 10M
12 -- STANDBY LOGFILE
13 DATAFILE
14 'F:\COPY2\COPY2\SYSTEM01.DBF',
15 'F:\COPY2\COPY2\UNDOTBS01.DBF',
16 'F:\COPY2\COPY2\CWMLITE01.DBF',
17 'F:\COPY2\COPY2\DRSYS01.DBF',
18 'F:\COPY2\COPY2\EXAMPLE01.DBF',
19 'F:\COPY2\COPY2\INDX01.DBF',
20 'F:\COPY2\COPY2\ODM01.DBF',
21 'F:\COPY2\COPY2\TOOLS01.DBF',
22 'F:\COPY2\COPY2\USERS01.DBF',
23 'F:\COPY2\COPY2\XDB01.DBF'
24 CHARACTER SET WE8ISO8859P1
25 ;
Control file created.
SQL>Joel Pérez
http://otn.oracle.com/experts
Similar Messages
-
TIP 01: Default User Tablespace in 10g by Joel Pèrez
Hi OTN Readers!
Everyday I get connection on Internet and one of the first issues that
I do is to open the OTN main page to look for any new article or any
new news about the Oracle Technology. After I open the main page of
OTN Forums and I check what answers I can write to help some people
to work with the Oracle Technology and I decide to begin to write some
threads to help DBAs and Developers to learn the new features of 10g.
I hope you can take advantage of them which will be published here in
this forum. For any comment you can write to me directly to : [email protected]
Please do not replay this thread, if you have any question related to
this I recommend you to open a new post. Thanks!
The tip of this thread is: DEFAULT USER TABLESPACE
Joel Pérez
http://otn.oracle.com/expertsStep 9: At the step 5 We changed the default tablespace of the database but there is an
important detail that We have to realize. That detail is the following : when you change
the default tablespace of the database. The users were using it are move to store its objects
in the new default tablespace but the objects that were stored in the original tablespace
remain there. Let's go to look at it:
Here We are connected to the database as system user
SQL> show user
USER is "SYSTEM"Let's go to get connection as new_user user in order to create a table
SQL> conn new_user/new_user@base1
Connected.
Creating a table in the schema NEW_USER
SQL> create table t1_new_user(c1 number);
Table created.As you can see that table is stored in the default tablespace assigned to the user new_user
SQL> select TABLE_NAME, TABLESPACE_NAME from dba_tables
2 where owner='NEW_USER';
TABLE_NAME TABLESPACE_NAME
T1_NEW_USER USERS1Now, We are going to perform the change at the database level regarding the default tablespace
SQL> alter database default tablespace TEST;
Database altered.Now, Let's go to see where the object is stored
SQL> select TABLE_NAME, TABLESPACE_NAME from dba_tables
2 where owner='NEW_USER';
TABLE_NAME TABLESPACE_NAME
T1_NEW_USER USERS1The object remain in the original tablespace assigned to the user new_user.
Here We can realize that the change was successful but the table still remain in the original
tablespace. You will have to move manually the objects to a new default tablespace.
SQL> select USERNAME, DEFAULT_TABLESPACE from dba_users
2 where username='NEW_USER';
USERNAME DEFAULT_TABLESPACE
NEW_USER TESTJoel Pérez
http://otn.oracle.com/experts -
TIP 02: Easy Connect Naming Method in 10g by Joel Pèrez
Hi OTN Readers!
Everyday I get connection on Internet and one of the first issues that
I do is to open the OTN main page to look for any new article or any
new news about the Oracle Technology. After I open the main page of
OTN Forums and I check what answers I can write to help some people
to work with the Oracle Technology and I decided to begin to write some
threads to help DBAs and Developers to learn the new features of 10g.
I hope you can take advantage of them which will be published here in
this forum. For any comment you can write to me directly to : [email protected]
Please do not replay this thread, if you have any question related to
this I recommend you to open a new post. Thanks!
The tip of this thread is: Easy Connect Naming Method
Joel Pérez
http://otn.oracle.com/expertsLet's go to test it removing the BASE1 service of the listener.ora file
# listener.ora Network Configuration File: C:\oracle\product\10.1.0\db_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = BASE2)
(ORACLE_HOME = C:\oracle\product\10.1.0\db_1)
(SID_NAME = BASE2)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle10g)(PORT = 1521))
)and Now, I am going to reload the listener service in order to
apply the change to the enviroment.
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
C:\>
C:\>lsnrctl stop
LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 20-APR-2004 13:20
:35
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10g)(PORT=1521)))
The command completed successfully
C:\>lsnrctl start
LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 20-APR-2004 13:20
:39
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production
System parameter file is C:\oracle\product\10.1.0\db_1\network\admin\listener.or
a
Log messages written to C:\oracle\product\10.1.0\db_1\network\log\listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10g)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Produ
ction
Start Date 20-APR-2004 13:20:41
Uptime 0 days 0 hr. 0 min. 2 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle\product\10.1.0\db_1\network\admin\listener.o
ra
Listener Log File C:\oracle\product\10.1.0\db_1\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "BASE2" has 1 instance(s).
Instance "BASE2", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
C:\>Joel Pérez
http://otn.oracle.com/experts -
TIP 03: Transportable Tablespaces in 10g by Joel Pèrez
Hi OTN Readers!
Everyday I get connection on Internet and one of the first issues that
I do is to open the OTN main page to look for any new article or any
new news about the Oracle Technology. After I open the main page of
OTN Forums and I check what answers I can write to help some people
to work with the Oracle Technology and I decided to begin to write some
threads to help DBAs and Developers to learn the new features of 10g.
I hope you can take advantage of them which will be published here in
this forum. For any comment you can write to me directly to : [email protected]
Please do not replay this thread, if you have any question related to
this I recommend you to open a new post. Thanks!
The tip of this thread is: Transportable Tablespaces
Joel Pérez
http://otn.oracle.com/expertsStep 9: Apply this command to see all the options of the export utility
C:\>
C:\>EXP HELP=Y
Export: Release 10.1.0.2.0 - Production on Fri Apr 23 19:48:30 2004
Copyright (c) 1982, 2004, Oracle. All rights reserved.
You can let Export prompt you for parameters by entering the EXP
command followed by your username/password:
Example: EXP SCOTT/TIGER
Or, you can control how Export runs by entering the EXP command followed
by various arguments. To specify parameters, you use keywords:
Format: EXP KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
Example: EXP SCOTT/TIGER GRANTS=Y TABLES=(EMP,DEPT,MGR)
or TABLES=(T1:P1,T1:P2), if T1 is partitioned table
USERID must be the first parameter on the command line.
Keyword Description (Default) Keyword Description (Default)
USERID username/password FULL export entire file (N)
BUFFER size of data buffer OWNER list of owner usernames
FILE output files (EXPDAT.DMP) TABLES list of table names
COMPRESS import into one extent (Y) RECORDLENGTH length of IO record
GRANTS export grants (Y) INCTYPE incremental export type
INDEXES export indexes (Y) RECORD track incr. export (Y)
DIRECT direct path (N) TRIGGERS export triggers (Y)
LOG log file of screen output STATISTICS analyze objects (ESTIMATE)
ROWS export data rows (Y) PARFILE parameter filename
CONSISTENT cross-table consistency(N) CONSTRAINTS export constraints (Y)
OBJECT_CONSISTENT transaction set to read only during object export (N)
FEEDBACK display progress every x rows (0)
FILESIZE maximum size of each dump file
FLASHBACK_SCN SCN used to set session snapshot back to
FLASHBACK_TIME time used to get the SCN closest to the specified time
QUERY select clause used to export a subset of a table
RESUMABLE suspend when a space related error is encountered(N)
RESUMABLE_NAME text string used to identify resumable statement
RESUMABLE_TIMEOUT wait time for RESUMABLE
TTS_FULL_CHECK perform full or partial dependency check for TTS
TABLESPACES list of tablespaces to export
TRANSPORT_TABLESPACE export transportable tablespace metadata (N)
TEMPLATE template name which invokes iAS mode export
Export terminated successfully without warnings.Joel Pérez
http://otn.oracle.com/experts -
Facing Parse Errors after upgrading database from 10g to 11g
Hi,
We are facing parse errors in the SQL's after upgrading database from 10g to 11g.
Kindly look into below parse errors.
********************************** Parse Error *****************************************************
Tue Aug 13 14:13:08 2013
kksSetBindType 16173533-2: parse err=1446 hd=3c73061fb8 flg=100476 cisid=173 sid=173 ciuid=173 uid=173
PARSE ERROR: ospid=15598, error=1446 for statement:
SELECT ROWID,ORGANIZATION_CODE,PADDED_CONCATENATED_SEGMENTS,PRIMARY_UOM_CODE,REVISION,SUBINVENTORY_CODE,TOTAL_QOH,NET,RSV,ATP,ORGANIZATION_NAME,ITEM_DESCRIPTION,INVENTORY_ITEM_ID,ORGANIZATION_ID,LOCATOR_ID,LOCATOR_TYPE,ITEM_LOCATOR_CONTROL,ITEM_LOT_CONTROL,ITEM_SERIAL_CONTROL FROM MTL_ONHAND_LOCATOR_V WHERE (INVENTORY_ITEM_ID=:1) and (ORGANIZATION_ID=:2) order by ORGANIZATION_CODE,SUBINVENTORY_CODE,REVISION, organization_code, padded_concatenated_segments
Tue Aug 13 14:13:10 2013
kksfbc 16173533: parse err=942 hd=3c387c4028 flg=20 cisid=3266 sid=3266 ciuid=3266 uid=3266
PARSE ERROR: ospid=29813, error=942 for statement:
Select feature from toad.toad_restrictions where user_name=USER or user_name in ( select ROLE from sys.session_roles)
kksfbc 16173533: parse err=942 hd=3c97d83648 flg=20 cisid=3266 sid=3266 ciuid=3266 uid=3266
PARSE ERROR: ospid=29813, error=942 for statement:
SELECT password
FROM SYS.USER$
WHERE 0=1
kksfbc 16173533: parse err=6550 hd=35185e4278 flg=20 cisid=3266 sid=3266 ciuid=3266 uid=3266
----- PL/SQL Stack -----
----- PL/SQL Call Stack -----
object line object
handle number name
319e277050 30 anonymous block
319e277050 57 anonymous block
PARSE ERROR: ospid=29813, error=6550 for statement:
BEGIN sys.dbms_profiler."146775420110782746251362632012"; END;
kksfbc 16173533: parse err=942 hd=3c142d8600 flg=20 cisid=3266 sid=3266 ciuid=3266 uid=3266
----- PL/SQL Stack -----
----- PL/SQL Call Stack -----
object line object
handle number name
319e277050 67 anonymous block
PARSE ERROR: ospid=29813, error=942 for statement:
SELECT 1 FROM plsql_profiler_data WHERE 0 = 1
Please help.
Regards
SureshHi Suresh,
Apologies for misunderstanding..
Tue Aug 13 14:13:08 2013
kksSetBindType 16173533-2: parse err=1446 hd=3c73061fb8 flg=100476 cisid=173 sid=173 ciuid=173 uid=173
PARSE ERROR: ospid=15598, error=1446 for statement:
SELECT ROWID,ORGANIZATION_CODE,PADDED_CONCATENATED_SEGMENTS,PRIMARY_UOM_CODE,REVISION,SUBINVENTORY_CODE,TOTAL_QOH,NET,RSV,ATP,ORGANIZATION_NAME,ITEM_DESCRIPTION,INVENTORY_ITEM_ID,ORGANIZATION_ID,LOCATOR_ID,LOCATOR_TYPE,ITEM_LOCATOR_CONTROL,ITEM_LOT_CONTROL,ITEM_SERIAL_CONTROL FROM MTL_ONHAND_LOCATOR_V WHERE (INVENTORY_ITEM_ID=:1) and (ORGANIZATION_ID=:2) order by ORGANIZATION_CODE,SUBINVENTORY_CODE,REVISION, organization_code, padded_concatenated_segments
Assuming you see the above error message in the alert log file, which was your original post, follow the below steps:
1 Get the 'ospid' value from the error
2. Issue the below command:
SQL> select request_id,ORACLE_PROCESS_ID
2 from fnd_concurrent_requests
3 where request_id = 15598;
3. After obtaining the request_id
4, Query it from the front-end using SYSADMIN responsibility
Hopefully this should get you the respective concurrent report/program.
Thanks &
Best Regards, -
How to create database in 10g xe
How to create database in 10g xe? could you please direct me to which documentation in 10g xe website? is it possible to create the db from the web console? if so, how? I can't seem to find a way to do it? Thanks
You cannot: there can only be one XE database per host and it's created when you install Oracle XE.
-
Logical Standby Database with 10g+ASM on both sides??
Hi out there,
is there a known way to establish a logical standby database on 10g, if both
sides are running with an ASM setup?
I've tried to create one out of a physical standby database (which is set up
and running w/o any problems), like a book suggested me to do.
The procedure was:
1. switch on supplemental logging
2. prepare initiation parameters (for archive logging etc.) on both sides for
logical stb.
3. shut down the phyiscal standby
4. alter database create logical standby controlfile as '<path>'; on the
primary, transfer the controlfile to the standby db. Here I had to use RMAN
to copy the controlfile into the ASM System, and modify the initfile/spfile
in order to use the controlfile. No problem so far.
5. mount the standby database, alter database recover managed standby database
disconnect; -> At this point, the alert log complained about non-available
datafiles.
6. alter database activate standby database; --> fails ("needs recovery") due
to last point.
The trouble is, the controlfile created at point 4 cointains wrong paths to
the datafiles. Since I can not have the same disk group name on the standby
system, and since ASM renames the stored datafiles by its own, the complaints
of point 5 are comprehensible, but nevertheless annoying.
I tried to backup a controlfile to trace and change the paths, but at after
mounting the standby with this controlfile and proceeding at point 5, the
system says "<path> is not a standby controlfile"
Is there a different way of creating a "Logical Standby Database with 10g+ASM
on both sides"? Metalink said nothing about LogStby and ASM.
Best regards and thanks in advance,
MartinI'm not sure if this will work but try:
1. create trace control file (you did it)
2. change paths (you did it)
3. recrate control file (you did it)
... there was error occured during mount before
so mount database (not as standby)
4. create standby control file (from recreated control file)
5. shutdown instance, replace control file with new standby control file or replace the control filename in parameter file.
6. mount as standby
What happend?
Update: Tested on my side and it has worked fine... How about you?
Message was edited by:
Ivan Kartik -
Oracle database XE 10g on Windows XP Professional SP2
I'm installing Oracle Database XE 10g on my computer but when i launch the exe I receive the message ' error reading set up inizialization file '.
help me pleasehi
can u plz describe little bit more. -
Upgrading database in 10g with 9i cold backup.
Hello Experts,
I am upgrading my database in 10g with cold backup of 9i.
I am getting this error
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: 'D:\9i_DB\SYSTEM01.DBF'
could you people help me
Thanks in Advance....I would suggest you need to start the db in 9i first .. check the db is up and running .. then go for Manuall upgrade process to10g
--Girish -
Physical Standby database Oracle 10g Standard Edition
Hello,
I open a new question about testing a standby database a because of this:
I realize that my standby database is 10g Standard and not Enterprise and not 11g.
Because for testing we plan to modify data on Standby, we are looking for some way to restore Standby to the point before testing.
So, I can't use Flashback Recovery Area for restoring my database to a certain point after testing.
In this scenario, the only way that I think is:
On Standby
- Shutdown database
- Copy by O/S all datafiles, temp files, control files and redo logs. That will be my backup before testing.
- Open database, test and modify data
- When test is finished, shutdown database
- Copy and replace by O/S all datafiles, temp files, control files and redo logs from backup place
- Open database as standby and apply all archived redo logs needed.
Would be it work without problem or should I copy other files?user521219 wrote:
Hello,
I open a new question about testing a standby database a because of this:
I realize that my standby database is 10g Standard and not Enterprise and not 11g.
Because for testing we plan to modify data on Standby, we are looking for some way to restore Standby to the point before testing.
So, I can't use Flashback Recovery Area for restoring my database to a certain point after testing.
In this scenario, the only way that I think is:
On Standby
- Shutdown database
- Copy by O/S all datafiles, temp files, control files and redo logs. That will be my backup before testing.
- Open database, test and modify data
- When test is finished, shutdown database
- Copy and replace by O/S all datafiles, temp files, control files and redo logs from backup place
- Open database as standby and apply all archived redo logs needed.
Would be it work without problem or should I copy other files?yes, It will work.
it comes under Refresh of database, use --> cleanup --> restore.
If its enterprise edition , you can use procedure mentioned in this note How To Open Physical Standby For Read Write Testing and Flashback [ID 805438.1]
Edited by: CKPT on Jul 5, 2012 11:01 PM -
Available Now: Oracle Database Lite 10g Release 1
The Oracle Database Lite development team is pleased to announce the availability of Oracle Database Lite 10g (10.0.0.0.0) for Windows 2000/XP, Solaris 2.6, 2.7, 2.8, and Red Hat Enterprise Linux AS/ES 2.1/3.0 platforms.
The Windows release is currently available from OTN at:
http://www.oracle.com/technology/software/products/lite/index.html
Oracle Database Lite 10g is a complete and integrated solution for rapid development and deployment of high impact, mission vital applications for mobile and lightweight embedded environments. Oracle Database Lite is an extension to Oracle Database 10g for enterprises wanting to increase productivity, reduce operational costs, and improve customer satisfaction.
Oracle Database Lite uses data synchronization to reliably and securely exchange data between a corporate Oracle Database and mobile workers. Oracle Database Lite also allows companies to deploy and manage users, mobile applications and devices from a remote central location. Oracle Database Lite provides the necessary framework enterprise customers need to extend their enterprise applications and data to the most popular mobile platforms: Palm OS, Linux, Microsoft Windows CE/PPC, and Microsoft Windows NT/2000/XP/UNIX.
The following is a partial list of new features for Oracle Database Lite 10g that will make your mobile deployment easier to manage, use, and develop. A complete list will be available for download/viewing soon.
Device Management
As the number of mobile devices in an enterprise increases, it becomes more important to have complete control of the devices. Oracle Database Lite Device Management is a complete infrastructure to monitor and manage Oracle Database Lite assets such as database files, software libraries, data, and application files on remote devices. Device management decreases the total cost of ownership and protects an enterprises intellectual property.
Single Oracle Lite Binary
The Oracle Database Lite 10g release contains a single set of Oracle Lite database kernel binaries for all languages, removing the necessity of having different binaries for each of the following languages: Korean, Traditional Chinese, simplified Chinese, Japanese, and US/European languages.
Shared Map
The shared map function greatly improves performance by reducing sync processing timeand enhances the scalability of shared publication items. Shared maps allow users to share record state information and reduce the size of the resulting replication map tables.
Offline Instantiation
Offline instantiation enables quick and easy setup of mobile devices for business applications. Mobile administrators are able to prepare, in batch mode, a client package, which includes the mobile client software and initial data for every mobile user. This procedure helps users avoid an expensive online synchronization processes as part of the first time mobile client setup procedure.
Synchronization Manager
The Synchronization Manager is a complete, web-based enterprise management application to manage and monitor synchronization. The Synchronization Manager allows administrators to manage the synchronization service, monitor and analyze sync performance, administer the configuration, trace synchronization history, display and browse synchronization publication and subscription information, and monitor MGP (Message Generator and Processor) performance.
Oracle Application Server Support
The Oracle Database Lite 10g Mobile Server now runs as a web application on Oracle Containers for Java (OC4J) the runtime of Oracle Application Server. If Oracle
Database Lite 10g is deployed in standalone mode, an embedded version of OC4J will be installed and used. Oracle Database Lite may also be installed against an existing instance of Oracle Application Server.
Seamless upgrade from Oracle9 i Lite 5.0.2
The Oracle Database Lite 10g Upgrade Assistant allows customers to easily upgrade from existing Oracle9 i Lite 5.0.2 installations. The Upgrade Assistant automatically converts existing application definitions to the new format, and copies all relevant files to the new installation. As many customers have deployed mission critical systems using Oracle9i Lite technology, the Upgrade Assistant has been designed to minimize system downtime.
Download
Oracle Database Lite 10g (10.0.0.0.0) for Windows can now be downloaded from the following location.
http://www.oracle.com/technology/software/products/lite/index.htmlI am using Oracle 10g lite. Do you know if it supports silent installation.
-
Hi All,
I had installed 11.5.10.2 on IBM-AIX 5L V5.3(64 bit).
As by default my current database Oracle9i Enterprise Edition Release 9.2.0.6.0.
I need to upgrade my database to 10g R2.
What steps I need to follow and are there any changes that need to be done from Application Side.
I had made my installation in this scenario( multinode)
DB-CM-ADMIN -- 1st Node
FORM-WEB -- 2nd Node
Application file system sharing -- NO
Please advice.What steps I need to follow and are there any changes
that need to be done from Application Side.Check Note: 362203.1 - Oracle Applications Release 11i with Oracle 10g Release 2 (10.2.0)
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=362203.1
In addition, you need to apply Patch 5871314 and Patch 5892355 (To avoid ORA-00600: internal error code), these two patches are available on the following platforms:
- Solaris Operating System (SPARC 64-bit)
- AIX5L Based Systems (64-bit)
- Linux x86-64 (AMD64/EM64T)
- HP-UX PA-RISC (64-bit)
Note: 412271.1 - ORA-600 [22635] and ORA-600 [KOKEIIX1] Reported While Upgrading Or Patching Databases To 10.2.0.3
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=412271.1 -
Opatch Failed (Oracle Database Lite 10g 10.3.0.3)
Hi all,
I am Using Oracle Database 10g R2 10.2.0.4.0 and Oracle Database Lite 10g R3 10.3.0.3 On windows 2003 Server SP2 32 Bit. While Applying OPatch in my Lite database i got this error message and the Opatch Code is p12677282_103030_Generic
Please Advice me how to resolve this error message.
Error Message:
Do you want to upgrade the repository(y/n):y
"Upgrading repository for LU"
UpgradeRepoforLU.java:43: cannot access oracle.lite.sync.SiteDef
bad class file: D:\Olite10g_1\mobile\classes\consolidator.jar(oracle/lite/sync/S
iteDef.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpa
th.
SiteDef.CONS_SCHEMA=schema;
^
1 error
Could Not Find D:\12677282\oracle\lite\sync\*.class
A duplicate file name exists, or the file
cannot be found.
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/lite/sync/Upgr
adeRepoforLU
"Upgrading repository for bug 9776825"
UpgradeRepoforbug9776825.java:32: cannot access oracle.lite.sync.ConsPLSQL
bad class file: D:\Olite10g_1\mobile\classes\consolidator.jar(oracle/lite/sync/C
onsPLSQL.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpa
th.
stat.executeUpdate(oracle.lite.sync.ConsPLSQL.DEFAULT_PUB_QPKG_B
^
1 error
Exception in thread "main" java.lang.NoClassDefFoundError: UpgradeRepoforbug9776
825
"Upgrading repository for bug 9957803"
Thanks & Regards,
Shanbtw the latest patch (generic) is 12812978 actually this morning i installed it in 3 develop servers and 2 customers' without any issue (win 2003 server pcs)
anw in your case it seems that something possibly was not installed successfully.
1)press the close(x) button once on the mobileserver , wait some seconds it will say press any key to continue. press it and it will close
2) restart it. if the same warning comes out then try loggin in the http://localhost/webtogo page, is it working?does the server and mgp appear on?(green tick?)
3) if it is, try syncing a device, does it sync ok?
if all is yes then the warning is not important but you should have a look at it. some solutions
1)reinstalling the patch
2)or installing a newer patch,
3)or (i think) you can roll back the patch,
4)or if we are talking for a release server(customer) raise a service request.
5)or wait a little for some other forum users to check this thread and perhaps they have runned into such cases
i would go for number 2 -
Hi,
I get this error when I try to create the database on 10g
Total System Global Area 239075328 bytes
Fixed Size 2005472 bytes
Variable Size 184550944 bytes
Database Buffers 50331648 bytes
Redo Buffers 2187264 bytes
CREATE DATABASE V10
ERROR at line 1:
ORA-25146: EXTENT MANAGEMENT option already specified
CREATE TABLESPACE ind
ERROR at line 1:
ORA-01109: database not open
CREATE TABLESPACE tools
ERROR at line 1:This is the script used to create the database.
CREATE DATABASE $ORACLE_SID
MAXLOGFILES 10
MAXDATAFILES 30
MAXINSTANCES 2
DATAFILE '$ORACLE_DATA/$ORACLE_SID/SYSTEM01.DBF' SIZE 200 M REUSE AUTOEXTEND ON
EXTENT MANAGEMENT LOCAL
SYSAUX DATAFILE '$ORACLE_DATA/$ORACLE_SID/SYSAUX01.DBF' SIZE 200M REUSE AUTOEXTEND ON
EXTENT MANAGEMENT LOCAL
LOGFILE
GROUP 1 ('$ORACLE_DATA/$ORACLE_SID/$ORACLE_SID_01A.LOG','$ORACLE_DATA/$ORACLE_SID/$ORACLE_SID_01B
.LOG')
SIZE 50 M REUSE ,
GROUP 2 ('$ORACLE_DATA/$ORACLE_SID/$ORACLE_SID_02A.LOG','$ORACLE_DATA/$ORACLE_SID/$ORACLE_SID_02B
.LOG')
SIZE 50 M REUSE ,
GROUP 3 ('$ORACLE_DATA/$ORACLE_SID/$ORACLE_SID_03A.LOG', '$ORACLE_DATA/$ORACLE_SID/$ORACLE_SID_03
B.LOG')
SIZE 50 M REUSE
DEFAULT TEMPORARY TABLESPACE TEMP
TEMPFILE '$ORACLE_DATA/$ORACLE_SID/TEMP01.DBF' SIZE 300 M REUSE
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 256K
UNDO TABLESPACE UNDOTBS
DATAFILE '$ORACLE_DATA/$ORACLE_SID/UNDOTBS01.DBF' SIZE 750 M REUSE,
'$ORACLE_DATA/$ORACLE_SID/UNDOTBS02.DBF' SIZE 750 M REUSE,
'$ORACLE_DATA/$ORACLE_SID/UNDOTBS03.DBF' SIZE 750 M REUSE,
'$ORACLE_DATA/$ORACLE_SID/UNDOTBS04.DBF' SIZE 750 M REUSE
;Any idea where the error is?
thankshi,
We're using this script to create database on 9i, but without the SYSAUX tablespace. ( It's working fine on 9i )
I added the following 2 lines for 10g database creation( SYSAUX )
SYSAUX DATAFILE '$ORACLE_DATA/$ORACLE_SID/SYSAUX01.DBF' SIZE 200M REUSE AUTOEXTEND ON
EXTENT MANAGEMENT LOCALIf I remove EXTENT MANAGEMENT LOCAL from the above 2 lines, I then get this error
CREATE DATABASE MV10
ERROR at line 1:
ORA-30014: operation only supported in Automatic Undo Management modeThanks -
Handling multiple database with 10g CONSOLE
Hello list,
How do we handle multiple databases with 10g Enterprise Console?
We are running Oracle 10.1.0.2.0 on Windows 2003 server. I have one database setup but I need to install more databases and am having difficulty accessing and managing the second database. thanks for your input.may be you can try the following:
1) create a file named new_target.xml with the following:
<Target TYPE="oracle_database" NAME="DBAPV9.WORLD" DISPLAY_NAME="DBAPV9">
<Property NAME="OracleHome" VALUE="/opt/oracle/app/oraadm9i/product/9.2.0.4"/>
<Property NAME="UserName" VALUE="sys" ENCRYPTED="FALSE"/>
<Property NAME="password" VALUE="thepassword" ENCRYPTED="FALSE"/>
<Property NAME="Role" VALUE="sysdba"/>
<Property NAME="MachineName" VALUE="machine.domain"/>
<Property NAME="Port" VALUE="1521"/>
<Property NAME="SID" VALUE="DBAPV9"/>
</Target>
replace as appropriate
2) Execute emctl config agent addtarget new_target.xml
3) Execute emctl stop dbconsole
4) Execute emctl start dbconsole
Maybe you are looking for
-
I'm trying to back up itunes right now and it the keeps on opening my cd drive, which doesn't recognize dvds. So, I put the dvd in the drive that recognizes it and itunes doesn't do anything. I've tried it with several different disks. I also can't u
-
Multiple Instances of Sample Planning App Slowing down Server?
I am trying to work with the sample planning application that came with the installation of EPM system 11. In order to see what effect my changes have in the application and in an attempt to understand the functionality of the Planning, I have create
-
How to hide 'catalog','open',home' link from dashboard page in obiee11g ?
Hi, how to hide 'catalog','open',home' link from dashboard page in obiee11g based one users/groups. http://imageshare.web.id/images/e7tosu6qtsa9zdl1a8w8.jpg i.e: some users shold not able to see 'open','catalog',home link from dashboard but some powe
-
Make DW search in .class files
Hey folks, Maybe someone here knows the answer. When doing a "Entire Current Local Site" search in source code, DW seems to limit its search to...well, I don't really know what the limit is, but it doesn't search every file in a site. e.g. .class fi
-
Dms content repository not running
Hey friends, While creating content repository i went oac0 gave the clicked in create gave the details selected dms as document area, storage type as 04 http content server. Gave version 0046, port number as 1090, server name and server script as det