Oracle 10g : database generation script
I am new to oracle 10g and have migrated the database from MS sql server to Oracle using the migration work bench. Everything got migrated al right but now I want to generate a script of the database. Is there any way I can generate a db building script of the database like I can do in SQL server. Also, SQL server enterprise manager has a diagram tool where I can view the database diagram? Is there anything matching in Oracle?
Thanks,
balak
You can try to use export tool (exp) with full=y rows=n and then import tool (imp) with show=y: but that does it not easy to read or to process.
You can also have a look to package DBMS_METADATA but it likely requires some PL/SQL code the loop for each type of object and for each schema.
See http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96612/d_metad2.htm#1028659
For 10g, there are maybe similar features with the data pump tools but I am not sure: http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_overview.htm#i1009203
Message was edited by:
Pierre Forstmann
Similar Messages
-
Errors in manual creation of oracle 10g database
I created oracle 10g database manually and i am getting post installation errors.. could you please help out?
I executed @?/sqlplus/admin/pupbld.sql but it still shows
Error accessing PRODUCT_USER_PROFILE
Warning: Product user profile information not loaded!
You may need to run PUPBLD.SQL as SYSTEM
i tried to see
SQL> desc product_user_profile;
ERROR:
ORA-04043: object "SYSTEM"."SQLPLUS_PRODUCT_PROFILE" does not exist
not there?? any other scripts to be run ? please guide me.
2. I can not able login sys@sid as sysdba
SQL> select * from v$pwfile_users;
no rows selected
i changed
remote_login_passwordfile string EXCLUSIVE
re-started db but no help...
SQL> grant sysdba to sys;
grant sysdba to sys
ERROR at line 1:
ORA-01990: error opening password file
I re-created
$ORACLE_HOME/bin/orapwd file=$ORACLE_HOME/dbs/orapwmydb.ora password=xxxx entries=5 force=y
but no help..
Could one please help out... ! great thanks in advance..thanks for prompt reply .. but still one issue remain..
oracle DEVS $ sqlplus sys@sid sysdba
SQL*Plus: Release 10.1.0.4.0 - Production on Thu Jan 7 10:51:44 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-01031: insufficient privileges
but i can able to login as sqlplus sys as sysdba
SQL> select * From v$pwfile_users;
no rows selected
i tired to do
SQL> grant sysdba to sys;
grant sysdba to sys
ERROR at line 1:
ORA-01990: error opening password file
'/u02/app/oracle/product/10.1.0/dbs/orapw'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
there is already one password file with orapwsid.ora.. how this should be solved ? please help. thanks -
Oracle 10g Database conflicts with HTMLDB
Hai all,
I have encountered a strange conflict when I am trying to work out with Oracle 10g database and the famous HTML DB.
It is like this:
I have a 10g DB installed and an ASP application that works on this 10g instance via "Microsoft ODBC driver for oracle" perfectly.
Now I have downloaded and installed the 10g Companion CD and installed the HTML DB 1.5 along with the mandatory Apache web server. Good!! I could scrawl through the database using the HTML DB, creating applications, forms, items and etc fancy things without any issues.
The problem that I found was:
The ASP based application that used to work initially now is erroring out saying that "TNS could not resolve service name".
I thought that the Listener might be damaged or the ASP site was damaged or the Microsoft ODBC driver files were damaged and several other vauge guessings.
I have tested the issue in several ways (reinstalled oracle, the DB, the ASP Applicaton, re-configurin listener in a variety of ways) but every time installing BLINDLY the companion CD too. Nothing seem to work.
Then I recollected that the same issue I have encountered in the past with the installation of Oracle 8i and Developer 2000, where the TNS listener configured by the former damages the one configured by the later and vice-versa.
Basing on this past reminiscence, I finally stopped installing Companion CD over the Oracle installation and carried out the DB installation and the ASP based app. And everything worked fine.
CAN anybody tell me what is going wrong with these two oracle products(Oralce 10g DB and the HTML DB+Apache)?
WHY always the installation of a CLIENT SW (Developer, HTML DB etc) damages the connection with the database via ODBC drivers?
Many Thanks in advance.
RaviDera Mr. Tyler,
Thanks for your reply...I have implemented the solution that you have given for the TNS Listener conflict and everything works fine...
Here I have one more thing thats not working as I thought. do kindly help me out.
My requirement is to show the list of available storage drives (say C:, d:, e: etc on windows) available on the database server. Let me eloborate my problem well....
i have a Java App that executes a specific SQL script to create a tablespace, a user and the required db objects that my applicaiton needs.
if the Java App runs on the same machine where the oracle instance is running, the Java app pops up a list of available drives on the machine, creates a directory for the tablespace datafiles on the drive selected from the above list box, then runs the script which creates the tablespace and the rest of the things.
But if i run the Java app from another machine on the network, then my BLIND java app is popping up the drives of the local machine but NOT those from the oracle server machine and creates the folder on the local machine but not on the Oracle server and obviously the rest of the phases (tablespace creation itself) are failing as the required folder is not found on the oracle server machine.
the work arounds that i am thinking are:
a) use java ->
get the IP of the oracle server machine ->
use some java api such as java.net, java.io etc ->
create the required folder on the server machine instead of the local machihe
ISSUE: Java network programming is too tough for me(excuse me for this..i am not too good!!)
b) use some oracle sql or pl/sql api s to do the same
ISSUE: not found one!!!!
c) create a java stored procedure/function to get the list of drives of the oracle server and return as a string variable. then call this proc from the Java app once connected to the database....
ISSUE: i have created the SO-CALLEd java func. no compilation or loading errors. but there is no o/p either. but the same code when i run as a java class is showing the desired o/p. here is the code piece...can you please help me out!!!
-------Java Stored Function------
import java.io.*;
public class HDDLister
public static String listDrives()
String rootsList = "Available Roots: ";
try
File[]roots = File.listRoots();
for (int i=0;i<roots.length;i++)
rootsList += roots.toString();
rootsList += "#";
catch(Exception ex)
rootsList = ex.toString();
return rootsList;
-------Command to publish the Funciton-------
CREATE OR REPLACE FUNCTION HDDLISTER
RETURN VARCHAR2
IS
LANGUAGE JAVA
NAME 'HDDLister.listDrives() return java.lang.String';
and finally the point of the problem is, once we show the drives available on the server machine to the user and the user selects a drive, how to create a folder on the server machine???
Thousands of thanks in advance
Ravi -
Oracle 10g Database control installation error
Hi,
Installing oracle 10g database control had give me an error.But Repository created successfully . please find the log file below
Is there i need to install ...? before i start to run emca to install Database Control.
my points of interest are here
FileNotFoundException: /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/http-web-site.xml (No such file or directory)
i didn't find jms.xml,rmi.xml,http-web-site.xml etc in this location /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/
File/directory /opt/db/oracle/product/10.2.0/sysman/emdrep/config/repository.variables does not exist
Let me know how to slove this error.
Thanks,
anil
Error
=========
emca -config dbcontrol db -repos create
STARTED EMCA at Apr 8, 2008 4:33:25 PM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: XXX
Listener port number: 1521
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
You have specified the following settings
Database ORACLE_HOME ................ /opt/db/oracle/product/10.2.0
Database hostname ................ xxx.xxxx.local
Listener port number ................ 1521
Database SID ................ XXX
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
Do you wish to continue? [yes(Y)/no(N)]: yes
Apr 8, 2008 4:34:55 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_2008-04-08_04-33-25-PM.log.
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig updateReposVars
SEVERE: File/directory /opt/db/oracle/product/10.2.0/sysman/emdrep/config/repository.variables does not existApr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Failed to unlock all EM-related accounts
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Failed to unlock all EM-related accounts
Refer to the log file at /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_2008-04-08_04-33-25-PM.log for more details.
Could not complete the configuration. Refer to the log file at /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_2008-04-08_04-33-25-PM.log for more details.
the following is log generated (emca_2008-04-08_04-33-25-PM.log)
Apr 8, 2008 4:34:56 PM oracle.sysman.emcp.util.OUIInventoryUtil setOUILoc
CONFIG: Setting oracle.installer.oui_loc to /opt/db/oracle/product/10.2.0/oui
Apr 8, 2008 4:34:56 PM oracle.sysman.emcp.util.OUIInventoryUtil setOUILoc
CONFIG: Setting oracle.installer.oui_loc to /opt/db/oracle/product/10.2.0/oui
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
CONFIG: Homes to scan for used ports: [opt/db/oracle/product/10.2.0]
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
CONFIG: Searching all DBConsole instances for used ports under ORACLE_HOME /opt/db/oracle/product/10.2.0
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager findUsedPortsFromXML
CONFIG: Could not find or correctly parse file /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/jms.xml in searching for tag jms-server with att
ribute port
java.io.FileNotFoundException: /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/jms.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at java.io.FileReader.<init>(FileReader.java:41)
at oracle.sysman.emcp.util.PortManager.findUsedPortsFromXML(PortManager.java:282)
at oracle.sysman.emcp.util.PortManager.markAllUsedPorts(PortManager.java:1172)
at oracle.sysman.emcp.util.PortManager.getFreePorts(PortManager.java:543)
at oracle.sysman.emcp.EMDBPreConfig.getFreePorts(EMDBPreConfig.java:2324)
at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2261)
at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:670)
at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:233)
at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:160)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:141)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
CONFIG: Marking JMS port: null from /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager findUsedPortsFromXML
CONFIG: Could not find or correctly parse file /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/rmi.xml in searching for tag rmi-server with att
ribute port
java.io.FileNotFoundException: /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/rmi.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at java.io.FileReader.<init>(FileReader.java:41)
at oracle.sysman.emcp.util.PortManager.findUsedPortsFromXML(PortManager.java:282)
at oracle.sysman.emcp.util.PortManager.markAllUsedPorts(PortManager.java:1176)
at oracle.sysman.emcp.util.PortManager.getFreePorts(PortManager.java:543)
at oracle.sysman.emcp.EMDBPreConfig.getFreePorts(EMDBPreConfig.java:2324)
at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2261)
at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:670)
at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:233)
at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:160)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:141)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
CONFIG: Marking RMI port: null from /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager findUsedPortsFromXML
CONFIG: Could not find or correctly parse file /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/http-web-site.xml in searching for tag web-site
with attribute port
java.io.FileNotFoundException: /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/http-web-site.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at java.io.FileReader.<init>(FileReader.java:41)
at oracle.sysman.emcp.util.PortManager.findUsedPortsFromXML(PortManager.java:282)
at oracle.sysman.emcp.util.PortManager.markAllUsedPorts(PortManager.java:1180)
at oracle.sysman.emcp.util.PortManager.getFreePorts(PortManager.java:543)
at oracle.sysman.emcp.EMDBPreConfig.getFreePorts(EMDBPreConfig.java:2324)
at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2261)
at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:670)
at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:233)
at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:160)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:141)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
CONFIG: Marking HTTP port: null from /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.FileUtil getProperties
CONFIG: Error reading file /opt/db/oracle/product/10.2.0/sysman/config/emd.properties
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager getAgentPort
CONFIG: Cannot parse EMD_URL correctly. No port identified
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
CONFIG: Marking Agent port: null from /opt/db/oracle/product/10.2.0/sysman/config/emd.properties
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
CONFIG: Cannnot parse EMD_URL correctly. No port identified
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.FileUtil getProperties
CONFIG: Error reading file /opt/db/oracle/product/10.2.0/install/staticports.ini
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager getFreePorts
CONFIG: /opt/db/oracle/product/10.2.0:mcidm11.pacs11.local:null:SDM:{}:null:{DBCONTROL_HTTP_PORT=1158, RMI_PORT=5520, JMS_PORT=5540, AGENT_PORT=3938}
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter AGENT_PORT_SDM.
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager setParam
CONFIG: Setting param: AGENT_PORT_SDM value: 3938
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter DBCONTROL_HTTP_PORT_SDM.
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager setParam
CONFIG: Setting param: DBCONTROL_HTTP_PORT_SDM value: 1158
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter JMS_PORT_SDM.
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager setParam
CONFIG: Setting param: JMS_PORT_SDM value: 5540
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter RMI_PORT_SDM.
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager setParam
CONFIG: Setting param: RMI_PORT_SDM value: 5520
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMDBPreConfig getFreePorts
CONFIG: Ports assigned for SID: SDM : {DBCONTROL_HTTP_PORT=1158, RMI_PORT=5520, JMS_PORT=5540, AGENT_PORT=3938}
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: SQLEngine connecting with SID: SDM, oracleHome: /opt/db/oracle/product/10.2.0, and user: SYS
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: SQLEngine created successfully and connected
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig createRepository
CONFIG: Spooling to /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_repos_create_2008-04-08_04-34-58-PM.log
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: SQLEngine connecting with SID: SDM, oracleHome: /opt/db/oracle/product/10.2.0, and user: SYS
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: SQLEngine created successfully and connected
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig grantPrivsToDbsnmp
CONFIG: Exception while granting priviliges.
oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-00942: table or view does not exist
at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1467)
at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeSql(SQLEngine.java:1708)
at oracle.sysman.emcp.EMReposConfig.grantPrivsToDbsnmp(EMReposConfig.java:503)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:208)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:124)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig invoke
CONFIG: Failed to grant priviliges to dbsnmp.
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig updateReposVars
SEVERE: File/directory /opt/db/oracle/product/10.2.0/sysman/emdrep/config/repository.variables does not existApr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: SQLEngine connecting with SID: SDM, oracleHome: /opt/db/oracle/product/10.2.0, and user: SYS
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: SQLEngine created successfully and connected
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig unlockAccounts
CONFIG: Unlocking dbsnmp and sysman
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig unlockAccounts
CONFIG: ORA-06550: line 1, column 62:
PLS-00201: identifier 'SYSMAN.MGMT_VIEW_PRIV' must be declared
ORA-06550: line 1, column 62:
PL/SQL: Statement ignored
oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-06550: line 1, column 62:
PLS-00201: identifier 'SYSMAN.MGMT_VIEW_PRIV' must be declared
ORA-06550: line 1, column 62:
PL/SQL: Statement ignored
at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1467)
at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeSql(SQLEngine.java:1708)
at oracle.sysman.emcp.EMReposConfig.unlockAccounts(EMReposConfig.java:566)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:235)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:124)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Failed to unlock all EM-related accounts
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Failed to unlock all EM-related accounts
Refer to the log file at /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_2008-04-08_04-33-25-PM.log for more details.
Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Failed to unlock all EM-related accounts
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:239)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:124)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)Hi all,
i started creating database control repository, when i saw emca running i had seen repository created successfully , but sysman user is not created at this point of time. Then i looked into emca_repos_create_2008-04-10_11-57-03-AM.log file but the file is unable to open because it's looking for file emreposcre.sql which creates sysman user in this location /opt/db/oracle/product/10.2.0/sysman/admin/emdrep/sql/
i feel while installing the database these files are not created....? or i need to run any scripts before running emca ....?
give me some inputs to this thread.
Thanks,
nil
STARTED EMCA at Apr 10, 2008 11:55:41 AM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: XXXXX
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:
Do you wish to continue? [yes(Y)/no(N)]: yes
Apr 10, 2008 11:57:02 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /opt/db/oracle/product/10.2.0/cfgtoollog
Apr 10, 2008 11:57:03 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Apr 10, 2008 11:57:03 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Enterprise Manager configuration completed successfully
FINISHED EMCA at Apr 10, 2008 11:57:03 AM
mcidm11 10.2.0/bin>
CONFIG: Spooling to /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_repos_create_2008-04-10_11-57-03-AM.log
Apr 10, 2008 11:57:03 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Apr 10, 2008 11:57:03 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
mcidm11 emca/SDM> pwd
/opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM
mcidm11 emca/SDM> more emca_repos_create_2008-04-10_11-57-03-AM.log
SP2-0310: unable to open file "/opt/db/oracle/product/10.2.0/sysman/admin/emdrep/sql/emreposcre.sql"mcidm11 emca/SDM> cd
Directory: /opt/db
mcidm11 /opt/db> cd /opt/db/oracle/product/10.2.0/sysman/admin/emdrep/sql/
Directory: /opt/db/oracle/product/10.2.0/sysman/admin/emdrep/sql
mcidm11 emdrep/sql> ls
core db ias ocs -
Oracle 10G Database Control and Scheduling OWB Process Flow
Does anyone know how to go about scheduling an OWB Process Flow from
Oracle 10G Data Base Control. I knew how to do this with Oracle Enterprise Manager 9.2 but we recently upgraded to Oracle Db 10G and the interface has changed significantly.
Now the interface seems to require a PL/SQL stored procedure to be executed.
Is there a template procedure that is installed with 10G Data Base Control as there was for 9.2 i.e. oem_exec_template.sql?
Thanks! Deadline approaching fast...
MarionI've used the oem_exec_template.sql successfully with OWB 10.1 and Oracle 10G Database Control, with a little trial and error at first.
I'm assuming that your job execution environment is set up correctly, ie. that you can properly execute jobs via the host agent.
1. Log on to Database Control as SYSTEM, select Jobs from the links at the bottom of the page
2. In the Results section, Create Job, select "SQL Script" and press Go
3. In the General section, enter Job Name, and as SQL Script enter e.g.:
@/u01/app/oracle/owb_oracle_home/owb/rtp/sql/oem_exec_template.sql owb_runtime WF_LOC PROCESS MY_PROCESS , ,
4. In the Databases section, add your target database
5. In the Credentials section, I select "Override Preferred Credentials" and use the agent account (oracle on my Linux system) and db user owb_access (OWB Runtime Access user)
6. Review Schedule tab and submit
Comments on step 3:
- the oem_exec_template.sql script must be installed according to the path specified in step 3, on the database host where the OWB Runtime Repository is located
- owb_runtime is the owner of my OWB Runtime Repository
- WF_LOC is the name of my Workflow Location as seen in OWB Deployment Manager
- MY_PROCESS is the name of a deployed Workflow Process
- the commas indicate that I don't supply any system or custom parameters.
- step 3 is actually a shell command line that is interpreted by eg. /bin/sh on Unix or cmd on Windows, and must obey proper quoting rules. On windows, I had to specify the empty commas as "\," (including dblquotes)
Regards, Hans Henrik -
Problem Oracle 10g database Installation on Windows 2003 Server
Hi All,
I am trying to face some problem to install oracle 10g database on windows 2003 server with service pack 2. Once I start to installation it give me an error "Error in writing to directory 'c:\documents and settings\administrator\local settings\temp\orainstall2004xxx'. Please ensure that this directory is writable and has at least 45MB of disk space. Installation cannot continue"
I double-insured that there is enough disk-space and I am also in the Administrators-Group.
Please guide me for the above problem although I have done oracle 9i database installation with the same configuration.
Regards
Muhammad Shoaib898118 wrote:
Hi All,
I am trying to face some problem to install oracle 10g database on windows 2003 server with service pack 2. Once I start to installation it give me an error "Error in writing to directory 'c:\documents and settings\administrator\local settings\temp\orainstall2004xxx'. Please ensure that this directory is writable and has at least 45MB of disk space. Installation cannot continue"
I double-insured that there is enough disk-space and I am also in the Administrators-Group.
Please guide me for the above problem although I have done oracle 9i database installation with the same configuration.
Regards
Muhammad ShoaibOracle really doesn't like to be installed into directories with spaces in their names. -
How to configure Oracle Dataguard for Oracle 10g database
Hi Friends,
I would like to configuer Oracle Dataguard for my Oracle 10g Database.
Please provide me the configuration document.(step by step guide)
Regards,
DBHi
Go throw below link. This would be help to configure ODG..,
http://blogs.oracle.com/AlejandroVargas/2007/09/data_guard_physical_standby_im.html
http://blogs.oracle.com/AlejandroVargas/2007/10/data_guard_broker_observer_and.html
Thanks,
Mayilselvan.S -
Error executing a package on Oracle 10G database
Hi,
I've a package on Oracle 10G database which accepts xml string as input,loads it into XMLDOM and does some processing.
When I execute this package from .Net 2.0 client,I get the following error:
**Error**
err ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00216: invalid character 0 (0x0)
Error at line 1
**Error**
But when I execute the same package from .Net client 2.0 on Oracle 9i database, it seems to work fine.The xml which I am sending is well-formed one.
Where am i going wrong?
Please help.
Thanks in advance...!
Regards,
AmitCheck the xml strings passed as input . One of the xmls may be malformed.
-
Problem in installation of Oracle 10g database on RHEL 6
I am facing the problem when I am trying to install Oracle 10g database on Red Hat 6. When ./runinstaller is run, the message seems to be if I remember correctly is like ‘……………bad ELF interpreter’. But, the same source seems to be installing correctly in Red Hat 5.
Please, help in solving the doubt.
RegardsHi;
1. Please make search before posting your issue here. Similar issue mention here million time
2. Please use certified platform such as *nix 5.x .
3. For can check certification from metalink or from below note:
Oracle Database on Unix AIX,HP-UX,Linux,Mac OS X,Solaris,Tru64 Unix Operating Systems Installation and Configuration Requirements Quick Reference (8.0.5 to 11.2) [ID 169706.1]
PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
Regard
Helios -
Installation of Oracle 10g Database on Windows Vista Home Basic
Hi All,
I'm confused about the possibility of installing Oracle 10g Database Server in Windows Home Basic Operating System with Service Pack 1. Please help me out with a confirmation.
Thanks in advance
PrasanthHi Prasanth
Yes that should be possible but is it a production database or just a test database.
you can always control that in metalink if it is supported, I don't believe it is.
Read that documentation to perform the installation.
http://download.oracle.com/docs/cd/B19306_01/install.102/b14316/toc.htm -
Win32 Oracle 10g Database Server Installation problems
Hello,
I have recently installed the Oracle 10g Database Server for Win32. The installation seemed to be successful. I used the Enterprise option and all the suggested defaults. Ihave the following services installed and started after the installation:
o OracleDBConsoleORCL [started]
o OracleOraDb10g_home1iSQL*Plus [started]
o OracleOraDb10g_home1SNMPPeerEncapsulator [manual]
o OracleOraDb10g_home1SNMPPeerMasterAgent [manual]
o OracleOraDb10g_home1TNSListener [started]
o OracleServiceORCL [started]
I have created the following files:
# LISTENER.ORA Network Configuration File: d:\oracle10gServer\network\admin\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = asparuh)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = d:\oracle10gServer)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = d:\oracle10gServer)
(SID_NAME = ORCL)
# TNSNAMES.ORA Network Configuration File: d:\oracle10gServer\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = asparuh)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORCL)
INST1_HTTP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = asparuh)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = MODOSE)
(PRESENTATION = http://HRService)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
I go to the DOS console and type:
c:> sqlplus scott/tiger@ORCL
and I get:
ERROR: ORA-28000: the account is locked
I did this right after I restarted my computer.
When I use the Enterprise Manager at:
http://localhost:5500/em/
I get for ORCL:
Status: Status Pending
Status Pending Since: Unavailable
Seems that I can never get the database started properly?! When I press the Startup/Shutdown button I get:
Current Status: open
This is the correct current database status, although it doesnot match the current status in the sitemap page
What does this mean? Do you think this may contain the clue to the answer to this problem?
When I restart the Database I get the same status: unavailable.
I need your help to resolve this problem. The alternative is to revert back to Oracle 9i DB Server. Thank you in advance.
gkkI can help you with the SCOTT account being locked. Try:
sqlplus /nolog
connect / as sysdba
alter user scott identified by tiger account unlock; -
We are getting ¿ stored into our Oracle 10g database (Microsoft fault)
We are getting ¿ stored into our Oracle 10g database that is using WE8ISO8859P1 character set.
Problem is caused by the following:
Microsoft released software (in particularly MS Word) before considering any ANSI or ISO standard (although they claimed so).
At that time of pioneering graphical interface - they were the standard. Since then things changed. Microsoft initially targeted US marked, however very soon they wanted to expanded to Europe. For that they needed to get standardized character set instead of one initially being in use. Microsoft re-mapped character set in newer applications using Windows-1252 character set which is compatible with ISO-8851-1 (we are using in our Java Web applications). That cleared obstacles to forward on European market, where extended characters are necessary (like in French, Dutch, German languages...)
What happened with the initial character codes before Microsoft agreed with ISO to standardize characters? Well - Nothing.
So what are the consequences of that?
If we are using Microsoft Word document in conjunction with one of the oldest character set (universe) the ice-age character mapping is still there. So when we "cut and paste" the content to another application, characters sets are not mapped anymore. Especially French language "is sensitive to this" The Microsoft character set in Word decimally coded 146 ( ' ) is very often used in French.
Therefore if the text is generated in MS Word using old character mapping (universe) which we do, and using method of "cutting and paste" we are mismatching character set interpreted by other, newer applications.
Initially in the MS words (apostrophe) ' had code 191; then later after implementing Windows 1252 character set being moved to code 146 in accordance to ISO. Well ISO threat character coded 191 as ¿. So if you are using MS Word universe character set, ' looks like ' but in newer applications or ISO compatible applications it looks like ¿.
Can anyone provide me with periodically cleanup routines that replace garbled characters entered by Microsoft applications into Oracle database ?
Thanks
BrendonA simply update should work.
SQL> CREATE TABLE CHARTESTING(COLUMN1 VARCHAR2(30));
Table created.
Elapsed: 00:00:00.01
SQL>
SQL> INSERT INTO CHARTESTING (COLUMN1) VALUES (CHR(191)||CHR(146)||DBMS_RANDOM.STRING('A',5));
1 row created.
Elapsed: 00:00:00.01
SQL> COMMIT;
Commit complete.
Elapsed: 00:00:00.00
SQL> SELECT * FROM CHARTESTING;
COLUMN1
┐ÆTeoqw
Elapsed: 00:00:00.06
SQL> UPDATE CHARTESTING SET COLUMN1=REPLACE(COLUMN1,CHR(191),'*');
1 row updated.
Elapsed: 00:00:00.00
SQL> SELECT * FROM CHARTESTING;
COLUMN1
*ÆTeoqw
Elapsed: 00:00:00.00
SQL>After numerous attempts you will have to trust me that the characters are correct, my sqlplus isn't working for displaying the characters. -
Exporting of files in oracle 10g database
hey friends,
I installed Oracle 10g Database server on Windows XP,when i tried to take the backup through "Export to Files".I got this error.
I have added Administrator in "Login as Batch JOb" and has given administrator along with the password in host credentials.
I explain the procedure.I Login as Sys as SysOper as Oracle does not allow to take backup as sysdba.
I created the job and also given the right path for the backup but some how it fails then i check the log and i find the following output.
Output Log
Export: Release 10.1.0.2.0 - Production on Fri Mar 4 16:39:23 2005
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Username:
EXP-00004: invalid username or password
Username: Password:
EXP-00004: invalid username or password
Username:
EXP-00030: Unexpected End-Of-File encountered while reading input
EXP-00000: Export terminated unsuccessfully
The output log says i am giving invalid username and password but i don't know where i am giving the invalid username and password.
Please guide me as I am new to Oracle and want to learn Oracle Administration.
Thanks & Regards
AnkushGive me output of following on standby server
SQL>select name from v$datafile;
SQL>show parameter log_archive_dest -
Oracle 10g Database 64 bit setup file
Hi Friends,
I want 10g oracle database 64 bit or any Oracle 10g database setup file which is compatible with windows 7 64 bit.
I have searched in torrents and Google every where for this. I dont have Oracle support a/c to order CD.
Please help by sharing the setup file for this.
I need this for installing obiee 11g in my laptop which have win 7 4gb ram.
I tried installing Database 11g and obiee 11.1.1.5g simple install still 4GB RAM seems not sufficient.
TIAThe only 10gR2 version certified with Win 7 (Pro or higher, Home version is not supported) is 10.2.0.5 - http://docs.oracle.com/cd/B19306_01/relnotes.102/b15680/toc.htm#BABEBBJF
10.2.0.5 is only available on My Oracle Support, which you do not have access to, so you will need to install 11gR2 that is available at http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
HTH
Srini -
How the media files are stored in Oracle 10g database
I guess they have introduced new datatypes to handle multimedia objects( audio file, video file, images, etc etc). Can anyone tell which is the data type which is used to handle the media files in Oracle 10g database.
thanks,
shekar.Check this out.
http://download-west.oracle.com/docs/cd/B14117_01/appdev.101/b10840/mm_uses.htm#sthref433
Maybe you are looking for
-
In-car adapter for macbook air - what's the latest on this please?
I've got the latest macbook air and need to use it, and charge it, from a 12 volt car socket. I understand that I cannot do this though - surely I must have been misinformed? It seems that apple do make an "empower" socket rated at 15 volts that you
-
How widespread still is the use of JRE 1.4.2 or older
The client of our BPM software suite requires JRE 1.4.2. or newer. However, we plan to drop support for 1.4.2 for our new release. Can anyone provide me with figures (or good guesses) of the use of this JRE version, specifically in (larger) business
-
I have Dreamweaver CS4 setup on a new Win XP Pro computer with 1gb of memory. I was setting up a webpage that would act like a manual photogallery. The user by clicking on one image could change to the next image. Everything was done using AP Div and
-
With a 2x2,5GHZ PPC, working on a DNG file (30 Mb) : 1/ Using Retouch or Enhance > Revovery / Black Point, suddenly image goes white or blue, or reproduces hot and cold areas in white and red. I have to go back in film strip or to toggle with one of
-
In iCloud control panel the mail, calender and contact fields are not selectable.
Hi, I have a Windows7 pro 64bit with outlook 2010, latest version of iTunes and iCloud control panel. My mobilMe account is working in Outlook, notes from my iPone and iPad are shared, but there 's no entry for contacs or agenda. When I open iCloud c