Creating a empty table along with partition and index is taking Forever in oracle - oracle

We are trying to Creating an empty table along with partition and index in oracle, But it is taking a very long time is there a way to speed up the process like using Parallel processing, etc?
NOTE: We are using the following version "Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production"

Related

Oracle Index Rebuild Job

I am newly working on Oracle. our DB hit by thousands of DML every 5 mins, so after some time it throws an error for rebuild index. Please some one suggest me to how can i setup a job for rebuild all indexes regularly.
I am using Oracle SQL developer 4.2.
Oracle 11g

Oracle: Copy Database Oracle 10.2.0.2 to Oracle 12c

Currently we have a database running on Oracle 10g (10.2.0.2) in production which needs to be up 24/7, but since it is not supported by the data center, both server OS and Oracle database 10g, we have to move to Oracle 12c as agreed by the superiors. I know I can't use a direct expdp/impdp from 10.2.0.2 to 12.2.0.1. And with limited resources, meaning server resources and no access to oracle support to download oracle 10.2.0.5 patch set or any patch set that is available.
What is the safest and best way with minimal downtime option to move it from 10g to 12c? Do I need to install an 11gR2 software and use it to expdp the data?
The impdp should be downward compatible, but what you can do is:
Do the expdp of your 10.2 database with the 12c software
Use the VERSION parameter of expdp and impdp if you still have problems
You have not told us how big your 10.2 database is and whether you have a limited budget or not. Sometimes the 'superiors' want every last transaction accounted for, and the only way to do this is to use Goldengate. So you can setup the target database, take as long as you need to import the data, and all the while goldengate is keeping the source and target in synch. Goldengate is expensive though and should only be necessary if you have terabytes to deal with.

Oracle Express Synchronization from Another Orable Database

I have a Oracle 10g database currently in a server.
I will create a web which may have massive requests to get data from the Oracle 10g. So, to prevent degrade the Oracle 10g database and server performance, I would like to setup an Oracle Express 11g to another server, periodically (say 15 minutes) get the data from Oracle 10g to Oracle Express 11g.
Finally the web will just get the data from the new server. And the only loading to the Oracle 10g is the data synchronization. There are just 2 tables in Oracle 10g need to sync.
My question is how can I set up the data synchronization?
For example, can I set up linked server, and set materialized view with refresh period between 2 oracles.
I am new to Oracle, welcome any useful reference materials and idea.

What Oracle setting prevents open cursors from closing?

I have two Oracle 11G installations. I can run a script that imports a 37MB database into one of them with no problems (installation A). In the other (installation B), when I run the exact same script with the exact same file it gets "ORA-01000: maximum open cursors exceeded". I increased the max open cursors to 20,000 but when the script gets to row 20,000 then it stops with the same ORA-01000 error. The installation that is working has max open cursors set to 300.
Obviously there is no problem with the script or the SQL because it works in one Oracle database. So there must be a setting in the other Oracle instance that prevents open cursors from closing. What could it be?
Installation A works.
Database = Oracle Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options. Driver = Oracle JDBC driver 11.2.0.1.0.
Installation B does not work.
Database = Oracle Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options. Driver = Oracle JDBC driver 11.2.0.3.0.
I would recommend checking what cursors are open in a session. If you see 10.000 statements, all alike, with open cursors, there is something wrong in the code.
I myself find the easiest way to do this:
connect sys
alter system flush shared_pool; /* Removes everything can be finished, the trees hinder my view of the forest. */
/* Overall overview. */
select *
from v$sqlarea
/* Open cursors per session. */
select *
from v$open_cursor

What is the MLSLABEL Oracle datatype?

I've come across a strange datatype in oracle called MLSLABEL. It's not listed on datatype docs, and is only valid for 'trusted oracle' (whatever that is). The documentation I could find on it is this. What is MLSLABEL, and what does it do?
MLSLABEL is (was?) a datatype used by Trusted Oracle, the foreunner of Oracle's Advanced Security Option. The Admin docs say it was included in regular Oracle for compatibility. Find out more.
Trusted Oracle as a brand was replaced by ASO with Oracle 9i (I think). I don't think MLSLABEL is used in ASO (I can't find anything in the relevant docs). It is still supported in modern versions of the database. probably for backwards compatibility:
SQL> select * from v$version;
BANNER
-----------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
SQL> create table mls (id number, lbl mlslabel);
Table created.
SQL>
If I recall correctly, it is used for a finer grained permission scheme. Oracle out of the box allows users to be granted permissions on views, tables, procs, etc. But if you need to limit access to users based on the value of a column in a record, I think that you can use Labels for that. On the other hand, I am not certain when you go to virtual private databases (VPDs), but that might not be what you are asking.

Resources