Using DBUA for oracle on two different servers - database

newbie to the oracle database world...
I have a database on 11g and I want to migrate this over to 12C and then from the 12C upgrade that particular database...
Any particular help / how-to's on how to do this?
I did testing with SQL Developer and migrated one table from 11G to 12C with no issues.
Any suggestions on how to get the database copied over.

there are thousands of docs and howto's about this topic.
So all depands on your enviroment ( Data, DB, Location of Files, Target OS, Source OS..... and so on.)
"with no issus" is the main goal of every dba and need a lot of practise and knowing about the oracle architecture.
copying db files (data, control, redo, pfile/spfile, password file.....) to the new location -> maybe you have to relocate these in the controlfiles
.. and so on....
So nobody can told you here a step-by-step guide for your task.
It can be easy if you know what you are doing.

Related

oracle to postgresql Migration

Till now I am working in a project with Oracle database with lot of query,procedure,functions,sequences.But Oracle license term is going to finished.
So as per requirement project need to migrate from oracle to PostgreSQL.So my question is what are those important factors(functions/predefined tables etc...) are going to give me problem or I need to put special attention.
And how to check for performance issues ?

How can I take the schema in Oracle and put it on another Computer?

I've been working on my Java-Database project on my desktop for days, and now its time to put them on my laptop, the java project won't be a problem, but what about my schema ? my database ? I don't feel like typing it all over, isn't there a way to take it out of Oracle? then put it back on oracle as well on my laptop?
See here. Oracle has these two tools called exp and imp for exporting a database and importing one. It will help transfer the database from your desktop to your laptop.
Edit: Even more info

Where does Oracle DBCA come in?

I'm planning to play around with Oracle Business Intelligence (for fun). I have access to a number of Oracle products, and may have gone overboard installing them all (quite possibly more than I need).
Problem is I'm not too sure how all the different Oracle components fit together, but I think I am still missing something, a crucial part - DBCA.
All the online help material I can find says use DBCA to create a database - but I don't seem to have DBCA anywhere.
What I do have installed is:
Oracle - OraClient11g_home1
Oracle - OraDb11g_home1
Oracle Business Intelligence
Oracle Weblogic
Does Oracle have a separate Database Server that is not included in the above? (Like MS SQL Server)
I'll note that I am completely new to Oracle and may be missing something very simple, so any help would be appreciated.
I'm looking for an answer that can lead me to how I can install DBCA and create my database but extra kudos for any additional brief information on how these Oracle building blocks work independently and together.
DBCA is the database configuration assistant. It is a wizard used to create a database and should be instaled during the server install. If you are testing you just want to create a database as part of the server insall and ignore dbca.
Oracle - OraDb11g_home1 is the database (most probably at least - given then Oracle naming conventions). DBCA was called as part of the installation process.
Note that a "database" in Oracle terms is something completely different than a "database" in MS SQL Server. A SQL Server "database" is closer to an Oracle schema.

How to automatically store data from Oracle in SQL Server (according to a schedule)

Hello,
I'm new here, so sorry, if my question is too basic. However, maybe you have some advice, example, links, which could help me... I'm trying to find something helpfull for few days, but no results as for now.
I'm working in a distributed environment. I have a Oracle server hundreds of miles away and a MS SQL server close to me. I'm writing a application using Visual Web Developer 2008 Express. I need some data from Oracle. It's not worth to query the Oracle server every time i need some data from it. I'd prefer to run some Oracle queries once each night and store results in some local (SQL Server) tables. I assume, I should run queries through standard windows scheduler (Windows Server 2008). I have the basic connectivity - I can open Oracle Database from local Visual Studio.
The questions are:
How to write a query/procedure/function that would get data from Oracle and put them into a SQL Server table (possibly recreated before each query run)?
How can I run such a query from command line (or in other way run from scheduler)
What naming conventions are applicable? In VS I use something like //IP.IP.IP.IP/Name and a user with password.
Thanks for any help or advice.
Regards,
Matteo
I suggest you speak to the DBA's of the Oracle and SQL Server databases, as there may be other considerations you need to bear in mind. (Data Integrity, Security, ownership etc.)
One route you could follow would be to implement DTS (For older databases) or SSIS (for new versions of SQL Server) processes to copy the data across on the schedule you want. (This is pretty much what they were built for.)
How much data are we talking about?
If there is a small quantity that you need to transfer every day, you can write a stupid fetch and insert script in language of your choice.
You only need to search for better solutions if "sync" would take too much resources.
Thanks...
I'm the DBA for the SQL Server, which will serve only for my application. For Oracle I just want to read data and I have enough privileges and agreement with DBA's. Security, ownership and integrity are not an issue for now. I just need some technical advise how to get data from Oracle to MSSQL tables on a schedule.
I use MS SQL Server 2008 Express SP1. I'm very close to solve my problem - I have established connections and everything installed and working. I just don't know, how to run a query, which would get data from Oracle and put into MSSQL, on regular basis, without manual interaction.
I've some experience in programming, but not much in databases (except creating complex SQl queries). Therefore some example or links to detailed description would be helpful. I'm not sure about naming conventions, differences between procedures, functions and queries, command line options to run db automation procedures and so on. I'm also not sure, about which mechanisms or technologies are available in MS SQL Server 2008 Express edition.

Creating new database under Oracle XE on Ubuntu

I've just installed Oracle XE in Ubuntu. Is there any way to create new databases, besides the one that comes with the installation, preferably from the command line so that I can do it from a script? It would be nice to have multiple databases started in the same time, if possible.
If it is not possible to create new databases, then maybe there is a way to "clean up" the default database? What I need is to be able to "start over" at any time with a fresh database.
I don't have experience with Oracle administration, so any hints, links, suggestions are welcome.
Thanks.
I don't know if you are aware of this, but most beginners confuse this about Oracle:
In Oracle, a database means a collection of data files and control files stored on disk. You can have only one database with Oracle XE. A database is mounted by a Oracle instance, which means all the background daemons and programs that you can see with ps.
You probably want a schema, which is what other DBMS products (e.g. MySQL) often refer to as a "database". IIRC there was no limit on the number of schemas in Oracle XE. You can create those from the APEX UI that comes with XE, or from command line (with CREATE USER -- again, confusingly, a user and schema are largely synonymous in this case).
I recommend reading the Concepts guide from Oracle documentation, most of this basic stuff (e.g. how things are called in Oracle-lingo) is covered there.
No. It's not possible to install multiple XE instances. Oracle XE only allows one instance by machine from the Oracle XE home page you can read:
Oracle Database XE can be installed on any size host machine with any
number of CPUs (one database per machine), but XE will store up to 4GB
of user data, use up to 1GB of memory, and use one CPU on the host machine.
To add more instances you can:
Use virtualization with an XE instace by virtual machine.
Download for free dev/personal use any other Oracle Database edition, for instance Oracle Standard Edition One.
Anyway, in most of the cases only one instance is enough for all the scenarios. Explain why do you need more instance to assistance about solutions.
To recreate the Xe instance, i thing the best and easy way is uninstall i and install again.

Resources