Moved dehydration Store to Oracle 10g DB
Hi... I'd like to make sure that this error in starting up the BPEL PM ( version 2.2 ) is OK after moving the dehydration store to an Oracle 10g database. I loaded the LoanFlow Demo and it seems to run fine.
Thanks, Matt
###Details###
ORABPEL Schema objects in 10g Database
TABLE_NAME TABLE_TYPE
ADMIN_LIST_CI VIEW
ADMIN_LIST_CX VIEW
ADMIN_LIST_WI VIEW
AUDIT_DETAILS TABLE
AUDIT_TRAIL TABLE
CI_ID_RANGE TABLE
CI_INDEXES TABLE
CUBE_INSTANCE TABLE
CUBE_SCOPE TABLE
DBG_WI VIEW
DLV_MESSAGE TABLE
DLV_MESSAGE_BIN TABLE
DLV_SUBSCRIPTION TABLE
DOCUMENT TABLE
DOMAIN TABLE
INVOKE_MESSAGE TABLE
INVOKE_MESSAGE_BIN TABLE
LOAN_CUSTOMER TABLE
NAMESPACE TABLE
PROCESS_REVISION TABLE
SCOPE_ACTIVATION TABLE
SYNC_STORE TABLE
SYNC_TRAIL TABLE
TASK TABLE
TX_INFERIOR TABLE
TX_MESSAGE TABLE
TX_SUPERIOR TABLE
VERSION TABLE
VERSION_SERVER TABLE
WI_EXCEPTION TABLE
WORK_ITEM TABLE
WORK_LIST VIEW
Database Connections after BPEL PM is started....
USERNAME
ORABPEL
ORABPEL
ORABPEL
ORABPEL
ORABPEL
ORABPEL
ORABPEL
ORABPEL
ORABPEL
ORABPEL
ORABPEL
ORABPEL
ORABPEL
ORABPEL
ORABPEL
ORABPEL
ORABPEL
ORABPEL
ORABPEL
ORABPEL
20 rows selected.
Portion of BPEL PM startup output....
05/02/17 16:02:23 Building Application TagLibrary Persistent Cache for owf
05/02/17 16:02:23 Done getting application current resources
05/02/17 16:02:23 Done initializing cache
05/02/17 16:02:23 Refreshing application cache - from existing cache ...
05/02/17 16:02:24 Found 0 listeners
05/02/17 16:02:24 java.sql.SQLException: ORA-00942: table or view does not exist
05/02/17 16:02:24 at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
05/02/17 16:02:24 at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)
05/02/17 16:02:24 at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)
05/02/17 16:02:24 at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:625)
05/02/17 16:02:24 at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:181)
05/02/17 16:02:24 at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:661)
05/02/17 16:02:24 at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:951)
05/02/17 16:02:24 at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:693)
05/02/17 16:02:24 at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1057)
05/02/17 16:02:24 at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2901)
05/02/17 16:02:24 at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:2942)
05/02/17 16:02:24 at oracle.tip.pc.services.owf.BridgeDBWrapper.getOWFProcesses(BridgeDBWrapper.java:159)
05/02/17 16:02:24 at oracle.tip.pc.services.owf.callback.OWFMonitorServlet.init(OWFMonitorServlet.java:46)
05/02/17 16:02:24 at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2141)
05/02/17 16:02:24 at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4582)
05/02/17 16:02:24 at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4676)
05/02/17 16:02:24 at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:820)
05/02/17 16:02:24 at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:542)
05/02/17 16:02:24 at com.evermind.server.Application.getHttpApplication(Application.java:889)
05/02/17 16:02:24 at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:690)
05/02/17 16:02:24 at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:586)
05/02/17 16:02:24 at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:263)
05/02/17 16:02:24 at com.evermind.server.http.HttpServer.setSites(HttpServer.java:261)
05/02/17 16:02:24 at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:162)
05/02/17 16:02:24 at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2385)
05/02/17 16:02:24 at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1542)
05/02/17 16:02:24 at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)
05/02/17 16:02:24 at java.lang.Thread.run(Thread.java:534)
05/02/17 16:02:24 Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)
initialized
<ServerManager::loadProcesses> Loading processes for all domains
<2005-02-17 16:02:25,512> <INFO> <default.collaxa.cube.engine> <CubeEngine::load
AllProcesses>
Loading processes for BPEL domain "default" ...
...
Matt, it seems like you are running the JDev Based Beta with the new workflow extensions. You should get the Technotes from the person that you supplied you the beta version.
Anyway, to install the additional tables, please run
pcttask.sql, pcowf.sql, catpcreports.sql using sql*plus into the right schema. You will find these files in <home>\integration\bpm\runtime\admin\sql
Sandor
Similar Messages
-
How to maintain Data availability in Oracle 10g RAC when LOADING the data?
Hi
we are having Oracle 10g server on Sun Solaris(64 bit) with 8 GB RAM.
We are in need of moving the database to "Oracle 10g RAC". (Real Application Clusters)
Our doubt is when loading the data into RAC server, will it affect the application?
coz' we heared that RAC server should be down when we load the data.
Is this correct?
If yes, then How to maintain High data availability when we load the data in RAC server?? Please help me.
Thanks.First, is this the same question that a colleague of yours posted in this thread?
Data Load in RAC
Second, are other sessions querying the table that you're loading data into? If so, how are you loading the data?
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Not able to fetch the audit trail details from dehydration store.
Hi
While i am trying to fetch the audit trail details from the dehydration store using oracle soa 11g api, i am getting the below error.
The complete stack trace is as below.
javax.naming.NameNotFoundException: Unable to resolve 'FacadeFinderBean'. Resolved '' [Root exception is javax.naming.NameNotFoundException: Unable to resolve 'FacadeFinderBean'. Resolved '']; remaining name 'FacadeFinderBean'
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at weblogic.jndi.internal.ServerNamingNode_1033_WLStub.lookup(Unknown Source)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:405)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:393)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at oracle.soa.management.internal.ejb.EJBLocatorImpl.lookupBean(EJBLocatorImpl.java:738)
at oracle.soa.management.internal.ejb.EJBLocatorImpl.lookupFinderBean(EJBLocatorImpl.java:716)
at oracle.soa.management.internal.ejb.EJBLocatorImpl.<init>(EJBLocatorImpl.java:167)
at oracle.soa.management.facade.LocatorFactory.createLocator(LocatorFactory.java:35)
at com.test.GetPayload.getCompositeInstancePayload(GetPayload.java:65)
at com.test.GetPayload.main(GetPayload.java:129)
Caused by: javax.naming.NameNotFoundException: Unable to resolve 'FacadeFinderBean'. Resolved ''
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
My code is as below
Hashtable jndiProps = new Hashtable();
jndiProps.put(Context.PROVIDER_URL, "t3://localhost:7001");
jndiProps.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
jndiProps.put(Context.SECURITY_PRINCIPAL, "weblogic");
jndiProps.put(Context.SECURITY_CREDENTIALS, "welcome1");
jndiProps.put("dedicated.connection", "true");
Locator locator = LocatorFactory.createLocator(jndiProps);
CompositeInstanceFilter filter = new CompositeInstanceFilter();
filter.setECID(ecid); //Set the composite ECID
filter.setId(compInstanceId); //Set the composite instance id
Any Suggestion in this regard will be helpful.
Thanks
Abhijit
Edited by: 945736 on Jul 11, 2012 4:20 PM
Edited by: 945736 on Jul 11, 2012 4:20 PMIf it just for a particular message then another simple solution is to open the message and go to details in pimon.
http://wiki.scn.sap.com/wiki/display/PIS/AdapterMessageMonitoringVi+service+and+it%27s+methods -
Oracle BPEL SOA - CUBE_SCOPE/DOCUMENT dehydration store contents
I have some queries concerning what bpel variables and values will be stored to Dehydration store in case oracle bpel. Consider I have an process "P1" with two scopes: an outer scope "s1" with variables "s1a,s1b,s1c" and within this s1 scope there is a nested inner scope "s2" with variables "s2a,s2b,s2c". When the process instance ends or if there is a wait activity at the end of outer scope s1, then the process state will be moved to dehydration store.
My question here is would oracle soa server store all the variables of both scopes s1 and s2 to dehydration store or since s2 scope is like a local loop within s1, would oracle only persist variables and values of processes of the outer scope s1 alone?
The reason why i ask is that the inner scope S2 in my process case handles a very huge xml of size more than 20 MB and i do not want this to be dehydrated to datastore at the end of process execution as this will fill up the soa table space quickly.Create a full user export of the ORABPEL/ORAESB/ORAWSM users and load them into your new database.
Change the datasource in the SOA Application Server to your new database. -
How to store photo images and thumbimpressions in oracle 10g database
Hi all
I have an web application running in Oracle 10g rel 1 database server in RHEL3. It has application server with forms and j2ee component as middle tier. I need to store centrally photo images and thumb impressions and use it in our application without any overhead on retrieval and performance of web application. what will be optimized method of storage of photo and thumb impressions. Awaiting your valuable suggestions.
Regards
Vijay KumarHi Vijay,
How to store photo images and thumbimpressions in oracle 10g database I have working code here for storing photos in Oracle tables that you may find useful:
http://www.dba-oracle.com/t_storing_insert_photo_pictures_tables.htm
Hope this helps . . .
Donald K. Burleson
Oracle Press author
Author of "Oracle Tuning: The Definitive Reference"
http://www.rampant-books.com/book_2005_1_awr_proactive_tuning.htm -
Data moving between Oracle 10g with CLOB fields
Hi all,
I have a trouble in migrate data between Oracle 10g with different platform. The worst thing is that I don't have a DBA account for the DB importing data. I think I can't use IMP or IMPDP in this way. So I seek help from sql developer, but it seems having another problem with CLOB data moving.
Re: EA2 : SQL Developer 1.5 : export data CLOB columns
in the thread, I found someone wrote this:
- SQL Developer v1.5 EA2 - exports first 4000 chars (which is anyway too small for me, because my CLOBs are larger - if they were smaller, I would have made them VARCHAR2s instead!).
I would like to ask:
1, What SQL Developer v1.5 EA2 is? Is it the Data Modeling one?
2, How to export table data with CLOB with SQL Developer v1.5 EA2? Since 4000 chars is enough for me to use.
OR any other method to export CLOB but not IMP / IMPDP ?
Now I am using the spool of sqlplus to export CLOB.
Many thanks,1. The EAs are Early Adapters, betas, so you should expect the same behaviour from the latest 1.5.4 production release.
2. Exports can be done with the Database Export tool, through the table's context menu in the navigator tree or the result grid's context menu.
Have fun,
K. -
Need guidence to store scan pdf in oracle 10g
Hello guru
I have 20000000 (2 corer) A4 size scan pdf containing text and images having
Average size 0f 0.5 mb. please guide me how can i store it in oracle database and what i have to do for same.
I am using oracle 10g forms as a front end for inserting & retriving scan pdf from database.
Regards
VishalVishal,
Here are 2 options , first you can use either procedure or anonymous block to load clob data
First Method -- I loaded alert.log successfully and you can imagine how big this file can be (5MB in my test case), in your case you need to specify your pdf file. CLOB/BLOB can take upto 4GB data
Make sure you have privs to create , read or write to directory
create table t1clob (
clob_data clob -- you can use blob
CREATE OR REPLACE DIRECTORY DIR AS '/my_path_to_pdf_file/pdf';
DECLARE
clob_data CLOB;
clob_file BFILE;
BEGIN
INSERT INTO t1clob
VALUES (EMPTY_CLOB ())
RETURNING clob_text INTO clob_data;
clob_file := BFILENAME ('DIR', 'wwalert_dss.log');
DBMS_LOB.fileopen (clob_file);
DBMS_LOB.loadfromfile (clob_data,
clob_file,
DBMS_LOB.getlength (clob_file)
DBMS_LOB.fileclose (clob_file);
COMMIT;
END;
Second Method: Use of Sqlldr
Example of controlfile
LOAD DATA
INFILE alert.log "STR '|\n'"
REPLACE INTO table t1clob
clob_text char(30000000)
)Also check this link for more example
http://www.oracle-base.com/articles/10g/LoadLobDataUsingSqlLoader.php
Hope this helps.
Regards
Edited by: OrionNet on Feb 6, 2009 11:59 PM -
Moving a database from windows oracle xe to linux oracle 10g Enterprise
I tried exporting my database in windows oracle xe over the network to oracle 10g Enterprise Edition on a linux platform but I got the following error message:
---10.0.2.0 not compatible.
I then did a local export in windows and moved the dumpfile to linux and I got the following error message:
---Bad dumpfile
Please kindly assist me with a suggestion on how to migrate my database.
Thanks.
Lauretta.Which version of Oracle do you run on windows?
I think, you didn't move the dump file using binary option on linux and that is why you got 'bad dump'.
Make sure you ftp the file in binary mode.
Jaffar -
Can oracle 10g database store 1,000,000,000,000 and bigger number
I am using oracle 10g db as my database.
Can the oracle databse holds and calculate the results large no. such as 1,000,000,000,000 .
what is the maximum numbers oracle can process.
Also does oracle supports numeric fields upto 9 decimal places?
Message was edited by:
437022You can see a similar thread today.
A simple query
Cheers
Sarma. -
Oracle 10g function to convert GML 3.1.1 to SDO_GEOMETRY
In Oracle 11g there is a function available to convert GML 3.1.1 to SDO_GEOMETRY (SDO_UTIL.FROM_GML311GEOMETRY)
However I need to support this in Oracle 10g that does not contain this function.
Does anybody have this function for me in Java or PL/SQL?
The Java classes GML, GML2, GML3 and GML 3g do not support GML 3.1.1 (with <patches>)
Thanks for any help!
RonHi Ron,
I would second John's advice to go Simon's Java route as probably the best way to go if you are truly trapped on 10g. Note that were you to consider going the PLSQL route, the 10g XMLTYPE has a limitation of 64K for the payload of any XML tag. This means any GML linestring or polygon with more than 64K of coordinate data would not be possible to store or manipulate as XMLTYPE.
ORA-31167: 64k size limit for XML node
This makes using XMLTYPE tools to work with GML a bit of a bust on 10g. Moving to 11g is definitely something you want to consider if GML is in your requirements. Also, as a GML user please consider putting in an enhancement request to Oracle Spatial to support GML 3.2 and 3.3 (feel free to piggy back on 9788193).
Oracle Spatial and support for GML 3.2.1?
The 3.3 spec is due out any day now. The existing 11g reader/writer almost works with the new specs if they just added a few tweaks for gml:id and the namespace.
Cheers,
Paul -
Hi I have a simple question (I hope)
As of SOA Suite 11g is it now possible to use one database with multiple dehydration stores?
The example is:
I have to developers on seperate machines both with JDeveloper 11g WLS and SOA Suite 11g components installed the dehydration store that each developers SOA Suite component would point to the same database. Is this possible?
Thanks in advanceHi Saheem,
I have one Oracle instance with 2 x SOA 11g dehydration store: one using prefix DEVA (DEVA_SOAINFRA, DEVA_MDS) and one using prefix DEVB (DEVB_SOAINFRA, DEVB_SOAINFRA).
I have 2 types of developers: one set with SOA suite components setup for DB Schema prefixed DEVA and one with SOA components setup for DB Schema prefixed DEVB.
I evane have in same oracle instance a 10g dehydration (with orabpel, oraesb schema) as we still maintain 10g apps.
Hope this helps.
JP -
Change from default oralite to oracle 10g schema
Hi,
i have already installed soasuite with basic installaion. now just we want to change the database from oralite to Oracle10g.
i want make two diffrent schema for running bpel(instance hibernation) and another one for esb. will it be possible. am i right here ?
is this enough to change datasource and connection pool properties in asc ?.
what is name of sql i have to rcompile in the 10g schema ?
esb schema setup:
===============
D:\product\10.1.3.1\OracleSOA\integration\esb\sql\oracle
bpel dehydration store
========================
D:\product\10.1.3.1\OracleSOA\bpel\system\database\scripts
any other scrips i need to compile ?
any document ??
Regards,
Bogi.Without the password you won't be able to use the migration exporter nor will you be able to unset it.
In this case the official way is to ask the user for the password or another way is to use a password recovery tool for MS Access. -
Oracle 10G New Feature........Part 1
Dear all,
from last couple of days i was very busy with my oracle 10g box,so i think this is right time to
share some intresting feature on 10g and some internal stuff with all of you.
Have a look :-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Oracle 10g Memory and Storage Feature.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1.Automatic Memory Management.
2.Online Segment Shrink
3.Redolog Advisor, checkpointing
4.Multiple Temporary tablespace.
5.Automatic Workload Repository
6.Active Session History
7.Misc
a)Rename Tablespace
b)Bigfile tablespace
c)flushing buffer cache
8.ORACLE INTERNAL
a)undocumented parameter (_log_blocks_during_backup)
b)X$ view (x$messages view)
c)Internal Structure of Controlfile
1.Automatic memory management
================================
This feature reduce the overhead of oracle DBA.previously mostly time we need to set diff oracle SGA parameter for
better performance with the help of own experience,advice views and by monitoring the behaviour
of oracle database.
this was just time consuming activity.........
Now this feature makes easy life for oracle DBA.
Just set SGA_TARGET parameter and it automatically allocate memory to different SGA parameter.
it focus on DB_CACHE_SIZE
SHARED_POOL_SIZE
LARGE_POOL
JAVA_POOL
and automatically set it as
__db_cache_size
__shared_pool_size
__large_pool_size
__java_pool_size
check it in alert_log
MMAN(memory manager) process is new in 10g and this is responsible for sga tuning task.
it automatically increase and decrease the SGA parameters value as per the requirement.
Benefit:- Maximum utlization of available SGA memory.
2.Online Segment Shrink.
==========================
hmmmmm again a new feature by oracle to reduce the downtime.Now oracle mainly focus on availablity
thats why its always try to reduce the downtime by intrducing new feature.
in previous version ,reducing High water mark of table was possible by
Exp/imp
or
alter table move....cmd. but on these method tables was not available for normal use for long hrs if it has more data.
but in 10g with just few command we can reduce the HWmark of table.
this feature is available for ASSM tablespaces.
1.alter table emp enable row movement.
2.alter table emp shrink space.
the second cmd have two phases
first phase is to compact the segment and in this phase DML operations are allowed.
second phase(shrink phase)oracle shrink the HWM of table, DML operation will be blocked at that time for short duration.
So if want to shrink the HWM of table then we should use it with two diff command
first compact the segment and then shrink it on non-peak hrs.
alter table emp shrink space compact. (This cmd doesn't block the DML operation.)
and alter table emp shrink space. (This cmd should be on non-peak hrs.)
Benefit:- better full table scan.
3.Redolog Advisor and checkpointing
================================================================
now oracle will suggest the size of redo log file by V$INSTANCE_RECOVERY
SELECT OPTIMAL_LOGFILE_SIZE
FROM V$INSTANCE_RECOVERY
this value is influence with the value of FAST_START_MTTR_TARGET .
Checkpointing
Automatic checkpointing will be enable after setting FAST_START_MTTR_TARGET to non-zero value.
4.Multiple Temporary tablespace.
==================================
Now we can manage multiple temp tablespace under one group.
we can create a tablespace group implicitly when we include the TABLESPACE GROUP clause in the CREATE TEMPORARY TABLESPACE or ALTER TABLESPACE statement and the specified tablespace group does not currently exist.
For example, if group1 is not exists,then the following statements create this groups with new tablespace
CREATE TEMPORARY TABLESPACE temp1 TEMPFILE '/u02/oracle/data/temp01.dbf'
SIZE 50M
TABLESPACE GROUP group1;
--Add Existing temp tablespace into group by
alter tablespace temp2 tablespace group group1.
--we can also assign the temp tablespace group on database level as default temp tablespace.
ALTER DATABASE <db name> DEFAULT TEMPORARY TABLESPACE group1;
benefit:- Better I/O
One sql can use more then one temp tablespace
5.AWR(Automatic Workload Repository):-
================================== AWR is built in Repository and Central point of Oracle 10g.Oracle self managing activities
is fully dependent on AWR.by default after 1 hr, oracle capure all database uses information and store in AWR with the help of
MMON process.we called it Memory monitor process.and all these information are kept upto 7 days(default) and after that it automatically purge.
we can generate a AWR report by
SQL> @?/rdbms/admin/awrrpt
Just like statspack report but its a advance and diff version of statspack,it provide more information of Database as well as OS.
it show report in Html and Text format.
we can also take manually snapshot for AWR by
BEGIN
DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT ();
END;
**The STATISTICS_LEVEL initialization parameter must be set to the TYPICAL or ALL to enable the Automatic Workload Repository.
[oracle@RMSORA1 oracle]$ sqlplus / as sysdba
SQL*Plus: Release 10.1.0.2.0 - Production on Fri Mar 17 10:37:22 2006
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> @?/rdbms/admin/awrrpt
Current Instance
~~~~~~~~~~~~~~~~
DB Id DB Name Inst Num Instance
4174002554 RMSORA 1 rmsora
Specify the Report Type
~~~~~~~~~~~~~~~~~~~~~~~
Would you like an HTML report, or a plain text report?
Enter 'html' for an HTML report, or 'text' for plain text
Defaults to 'html'
Enter value for report_type: text
Type Specified: text
Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DB Id Inst Num DB Name Instance Host
* 4174002554 1 RMSORA rmsora RMSORA1
Using 4174002554 for database Id
Using 1 for instance number
Specify the number of days of snapshots to choose from
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Entering the number of days (n) will result in the most recent
(n) days of snapshots being listed. Pressing <return> without
specifying a number lists all completed snapshots.
Listing the last 3 days of Completed Snapshots
Snap
Instance DB Name Snap Id Snap Started Level
rmsora RMSORA 16186 16 Mar 2006 17:33 1
16187 16 Mar 2006 18:00 1
16206 17 Mar 2006 03:30 1
16207 17 Mar 2006 04:00 1
16208 17 Mar 2006 04:30 1
16209 17 Mar 2006 05:00 1
16210 17 Mar 2006 05:31 1
16211 17 Mar 2006 06:00 1
16212 17 Mar 2006 06:30 1
16213 17 Mar 2006 07:00 1
16214 17 Mar 2006 07:30 1
16215 17 Mar 2006 08:01 1
16216 17 Mar 2006 08:30 1
16217 17 Mar 2006 09:00 1
Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap: 16216
Begin Snapshot Id specified: 16216
Enter value for end_snap: 16217
End Snapshot Id specified: 16217
Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_1_16216_16217.txt. To use this name,
press <return> to continue, otherwise enter an alternative.
Benefit:- Now DBA have more free time to play games.....................:-)
Advance version of statspack
more DB and OS information with self managing capabilty
New Automatic alert and database advisor with the help of AWR.
6.Active Session History:-
==========================
V$active_session_history is view that contain the recent session history.
the memory for ASH is comes from SGA and it can't more then 5% of Shared pool.
So we can get latest and active session report from v$active_session_history view and also get histortical data of
of session from DBA_HIST_ACTIVE_SESS_HISTORY.
v$active_session_history include some imp column like:-
~SQL identifier of SQL statement
~Object number, file number, and block number
~Wait event identifier and parameters
~Session identifier and session serial number
~Module and action name
~Client identifier of the session
7.Misc:-
========
Rename Tablespace:-
=================
in 10g,we can even rename a tablespace by
alter tablespace <tb_name> rename to <tb_name_new>;
This command will update the controlfile,data dictionary and datafile header,but dbf filename will be same.
**we can't rename system and sysaux tablespace.
Bigfile tablespace:-
====================
Bigfile tablespace contain only one datafile.
A bigfile tablespace with 8K blocks can contain a 32 terabyte datafile.
Bigfile tablespaces are supported only for locally managed tablespaces with automatic segment-space management.
we can take the advantage of bigfile tablespace when we are using ASM or other logical volume with RAID.
without ASM or RAID ,it gives poor response.
syntax:-
CREATE BIGFILE TABLESPACE bigtbs
Flushing Buffer Cache:-
======================
This option is same as flushing the shared pool,but only available with 10g.
but i don't know, whats the use of this command in prod database......
anyway we can check and try it on test server for tuning n testing some query etc....
SQL> alter system flush buffer_cache;
System altered.
++++++++++++++++++
8.Oracle Internal
++++++++++++++++++
Here is some stuff that is not related with 10g but have some intresting things.
a)undocumented parameter "_log_blocks_during_backup"
++++++++++++++++++++++++
as we know that oracle has generate more redo logs during hotbackup mode because
oracle has to maintain the a complete copy of block into redolog due to split block.
we can also change this behaviour by setting this parameter to False.
If Oracle block size equals the operating system block size.thus reducing the amount of redo generated
during a hot backup.
WITHOUT ORACLE SUPPORT DON'T SET IT ON PROD DATABASE.THIS DOCUMENT IS JUST FOR INFORMATIONAL PURPOSE.
b)some X$ views (X$messages)
++++++++++++++++
if you are intresting in oracle internal architecture then x$ view is right place for getting some intresting things.
X$messages :-it show all the actions that a background process do.
select * from x$messages;
like:-
lock memory at startup MMAN
Memory Management MMAN
Handle sga_target resize MMAN
Reset advisory pool when advisory turned ON MMAN
Complete deferred initialization of components MMAN
lock memory timeout action MMAN
tune undo retention MMNL
MMNL Periodic MQL Selector MMNL
ASH Sampler (KEWA) MMNL
MMON SWRF Raw Metrics Capture MMNL
reload failed KSPD callbacks MMON
SGA memory tuning MMON
background recovery area alert action MMON
Flashback Marker MMON
tablespace alert monitor MMON
Open/close flashback thread RVWR
RVWR IO's RVWR
kfcl instance recovery SMON
c)Internal Structure of Controlfile
++++++++++++++++++++++++++++++++++++
The contents of the current controlfile can be dumped in text form.
Dump Level Dump Contains
1 only the file header
2 just the file header, the database info record, and checkpoint progress records
3 all record types, but just the earliest and latest records for circular reuse record types
4 as above, but includes the 4 most recent records for circular reuse record types
5+ as above, but the number of circular reuse records included doubles with each level
the session must be connected AS SYSDBA
alter session set events 'immediate trace name controlf level 5';
This dump show lots of intresting information.
it also show rman recordes if we used this controlfile in rman backup.
Thanks
Kuljeet Pal SinghYou can find each doc in html and pdf format on the Documentation Library<br>
You can too download all the documentation in html format to have all on your own computer here (445.8MB)<br>
<br>
Nicolas. -
Nested tables and multiset operators in Oracle 10g
Consider the following scenario:
We have two identical relations R and S defined as:
CREATE TABLE R(
a INTEGER,
b table_type)
NESTED TABLE b STORE as b_1;
CREATE TABLE S(
a INTEGER,
b table_type)
NESTED TABLE b STORE as b_2;
where table_typ is defined as
CREATE TYPE table_typ AS TABLE OF VARCHAR2(8);
Suppose we have two instances of R and S, each having one tuple as follows: R(1,table_typ('a','b')) and S(1,table_typ('b','c')).
I would like to "merge" these two simple instances (e.g., achieve the effect of a simple SELECT * FROM R UNION SELECT * FROM S query) and obtain the following resulting instance: Result(1,table_typ('a','b','c')).
Would this be possible in Oracle 10g? A simple UNION does not work (I got a "inconsistent datatypes: expected - got SCOTT.TABLE_TYP" error). I also took a look at the MULTISET UNION operator over nested tables available in Oracle 10g, but it doesn't seem to get me anywhere. Any help on this would be greatly appreciated.
Thank you,
LauraOracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> CREATE OR REPLACE TYPE table_type AS TABLE OF VARCHAR2 (8);
2 /
Type created.
SQL> CREATE TABLE r(
2 a INTEGER,
3 b table_type)
4 NESTED TABLE b STORE as b_1;
Table created.
SQL> CREATE TABLE s(
2 a INTEGER,
3 b table_type)
4 NESTED TABLE b STORE as b_2;
Table created.
SQL> INSERT INTO r VALUES (1, table_type ('a', 'b'));
1 row created.
SQL> INSERT INTO s VALUES (1, table_type ('b', 'c'));
1 row created.
SQL> COLUMN c FORMAT A10;
SQL> SELECT r.a, r.b MULTISET UNION DISTINCT s.b c
2 FROM r, s
3 WHERE r.a = s.a;
A C
1 TABLE_TYPE('a', 'b', 'c')
SQL> -
Problem in Loading Data from SQL Server 2000 to Oracle 10g
Hi All,
I am a university student and using ODI for my final project on real-time data warehousing. I am trying to load data from MS SQL Server 2000 into Oracle 10g target table. Everything goes fine until I execute the interface for the initial load. When I choose the CKM Oracle(Create unique index on the I$ table) km, the following step fails:
21 - Integration - Prj_Dim_RegionInterface - Create Unique Index on flow table
Where Prj_Dim_Region is the name of my target table in Oracle.
The error message is:
955 : 42000 : java.sql.SQLException: ORA-00955: name is already used by an existing object
java.sql.SQLException: ORA-00955: name is already used by an existing object
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:633)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1086)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3057)
at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.g.y(g.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Unknown Source)
I am using a surrogate key column in my target table alongwith the natural key. The natural key is populated by the primary key of my source table, but for the surrogate key, I have created a sequence in my oracle schema where the target table exists and have used the following code for mapping:
<%=snpRef.getObjectName( "L" , "SQ_PRJ_DIM_REGION" , "D" )%>.nextval
I have chosen to execute this code on target.
Among my attempts to solve this problem was to set Create Index option of the CKM Oracle(Create Index for the I$ Table) to No so that it wont create any index on the flow table. I also tried to use the simple CKM Oracle km . Both solutions allowed the interface to execute successfully without any errors, but the data was not loaded into the target table.
When I right-click on the Prj_Dim_Region data store and choose Data, it shows empty. Pressing the SQL button in this data store shows a dialog box " New Query" where I see this query:
select * from NOVELTYFURNITUREDW.PRJ_DIM_REGION
But when i press OK to run it, I get this error message:
java.lang.IllegalArgumentException: Row index out of range
at javax.swing.JTable.boundRow(Unknown Source)
at javax.swing.JTable.setRowSelectionInterval(Unknown Source)
at com.borland.dbswing.JdbTable.accessChange(JdbTable.java:2959)
at com.borland.dx.dataset.AccessEvent.dispatch(Unknown Source)
at com.borland.jb.util.EventMulticaster.dispatch(Unknown Source)
at com.borland.dx.dataset.DataSet.a(Unknown Source)
at com.borland.dx.dataset.DataSet.a(Unknown Source)
at com.borland.dx.dataset.DataSet.a(Unknown Source)
at com.borland.dx.dataset.DataSet.open(Unknown Source)
at com.borland.dx.dataset.StorageDataSet.refresh(Unknown Source)
at com.borland.dx.sql.dataset.QueryDataSet.refresh(Unknown Source)
at com.borland.dx.sql.dataset.QueryDataSet.executeQuery(Unknown Source)
at com.sunopsis.graphical.frame.a.cg.actionPerformed(cg.java)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
I do not understand what the problem is and wasting days to figure it out. Any help will be highly appreciated as my deadline is too close for this project.
Thank you so much in advance.
NeelHi Cezar,
Can u plz help me with this scenario?
I have one Oracle data model with 19 source tables and one SQL Server data model with 10 target tables. I have created 10 interfaces which use JournalizedDataOnly on one of the tables in the interface; e.g in interface for DimCustomer target table, I have 2 tables, namely Customer and Address, but the journalizing filter appear only on Customer table and this option is disabled for Address automatically.
Now I want to create a package using OdiWaitForLog event detection. Is it possible to put all these 10 interfaces in just one package to populate the target tables? It works fine when I have only one interface and I use the name of one table in the interface for Table Name parameter of OdiWaitForLogData event, but when I try a comma seperated list of table names[Customer, Address] this error happens
java.sql.SQLException: ORA-00942: table or view does not exist
and if I use this method <%=odiRef.getObjectName("L","model_code","logical_schema","D")%>, I get this error
"-CDC_SET_NAME=Exception getObjectName("L", "model_code", "logical_schema", "D") : SnpLSchema.getLSchemaByName : SnpLschema does not exist" "
Please let me know how to make it work?
Do I need to create separate data models each including only those tables which appear in their corresponding interface and package? Or do I need to create multiple packages each with only one journalized interface to populate only one target table?
Thank you for your time in advance.
Regards,
Neel
Maybe you are looking for
-
How to compare 2 fields(This is an address field)
Hello experts, I have 2 internal tables. lets name them ztab1 and ztab2. both of them has 3 fields which are the same namely KUNNR, CDSEQ and ZADDRESS. Now, my requirement is that when a user modifies a certain address(this is field ZADDRESS) it will
-
Hi, A friend of mine sent me a video message but when i click it.It shows an error "Oops something went wrong.Please try again or get in touch if you need help".What should i do to view the video? I can see the small preview of the video in the box b
-
Nikon D2X Camera Raw 2.4 and CS1
Running CS1 on an old Mac Powerbook with 10.4.8. My understanding is that the D2x is supported in Camera Raw 2.4. But I can't open NEF files - just get the wrong type of document error. Searching on the Adobe website I can't find any reference to wha
-
Hi! I have this problem with Adobe Premiere Pro CS6, that I've never experienced before! My Premiere Pro has always runned smooth and without problems, but when I started a new project today, something went wrong. When I'm trying to open the video fi
-
Hi, We are on BI 7.0 and are implementing Integrated Planning. We have set up the Status Tracking System. It works fine. However, within a particular node in the STS, there are 5 Web Templates assigned and these have to be executed in a sequence du