Mapping Standard Edition DB Instance to Standard Edition 2 Version - Oracle - oracle

One of our Development Server is running with Oracle SE. The v$version, gives the result as,
Oracle Database 12c Release 12.1.0.1.0 - 64bit Production
In the same server, I have installed Oracle SE2 version, in a different folder. The v$version, gives the result as,
Oracle Database 12c Standard Edition Release 12.2.0.1.0 - 64bit Production
Both are working fine independently.
Is there any possibilities, to map the Older DB Instance with Newly Installed Oracle Version.?
or should i need to create a new DB instance, and import the older data.?

Yes, you can upgrade to 12.2.0.1.0. This is a lot quicker than export/import actions and also requires less space.
Start reading the documentation Upgrading with Oracle Database Upgrade Assistant (DBUA) given the question I guess that DBUA, the DataBase Upgrade Assistent is a nice help.
you can also do this manually. This comes down to
run the pre upgrade checks using the scripts from the new version. See new $ORACLE_HOME/rdbms/admin/preupgrd.sql
check the results of step 1 and fix what is needed. preupgrade_fixups.sql can help with some issues.
if your database is ready for the upgrade shutdown immediate
edit your /etc/oratab and reload your environment with oraenv
copy your spfile and paswd files to the new ORACLE_HOME/dbs directory
startup upgrade
run $ORACLE_HOME/bin/dbupgrade
run postupgrade_fixups.sql if needed
A more complete write down can be found by Tim Upgrading to Oracle Database 12c
Don't forget that the upgrade procedure leaves the database files on their original location. A backup is recommended.

Related

Directory Location is not writable

I had installed oracle database 11g XE then started to create database by using DBCA but at step 6 (Database configuration assistant) of 12 it is saying "Directory location D:\app\user\oradata\test is not writable.
I tried so many times but its always the same.How can I solve this problem?
This dialog is appearing
You can stop doing what you are doing as it won't work.
11g Express Edition (XE) database is installed during (initial) installation process. As XE allows only one instance, you can't create another database anyway so - stop trying.
If you want to practice such things (which is perfectly OK), switch to e.g. Standard Edition. It is dowloadable (for free, for education purposes) from the Oracle Technology Network.

How to install two oracle versions, 11g and 12c?

I want to install Oracle 11g and 12c in my computer for 2 diferent applications.
I have already Oracle 11g installed and it works very well, but when I installed 12c it didn't work and 11g stop running not knowing why. I had to uninstall it, and now 11g is working again, altought I still needing to install 12c but I don't know how to do it wothout crashing 11g.
I want to know if someone of you can tell me how to do it and how can I change between both instances.
Thanks.
If you want to install both Oracle 11GR2 and 12C, then install in different Oracle Homes.
Please note that when you install Oracle 12C, the service account for that database, will override any other Oracle permissions. So if you're using directories where your table-spaces are living in the same place for each database version, then the permissions for 11G will be overridden by 12c permissions. You'll need to manually adjust the permissions on the file locations respectively.
If you have troubles with listeners, then you'll need to indicate different listeners and their associated Oracle Home.
Please take a look here if you find any troubles with the listeners after having both databases installed.: Oracle 11g and 12c on same windows machine, 12c listener fails to start
If you have any problems then you can always review the trace files on the database, to determine why one isn't starting.
$ORACLE_HOME\virtual\diag\rdbms{SID}{SID}\alert\log.xml
OR
$ORACLE_HOME\virtual\diag\rdbms{SID}{SID}\trace\

Oracle Database 12c Installed, but no SQL developer showed up

I've been trying to use Oracle 12c and SQL Developer on a Virtual Machine running Oracle Linux for weeks now but the process gets worse and worse and this is the fifth time I do the same installation again.
I used oracle-rdbms-server-12cR1-preinstall for the preinstallation process, I also added the groups DBA, OPER, BACKUPDBA, DGDBA, KMDBA, and RACDBA.
I then used the./runInstaller file that comes with the Database and went through the installation process without any issues. But when the installation finished and I closed the installer, there is no trace of SQL Developer anywhere.
I'm not even sure if the Oracle Database was actually installed correctly, I've been running this command to see if it returns me anything in order to check if the database is actually installed but I don't know if i'm correct.
Don't give up. You can do it!
The daunting part of Oracle Database is that you are installing the exact same binaries for your learning environment as the largest bank on this planet has installed in their production environment! Oracle Database is a very sophisticated RDBMS and it takes years to learn it!
Oracle Database and SQL Developer
Oracle Database and SQL Developer are two separate products. You can download both from OTN and install them separately.
Database creation
Did you create a database (datafiles) while installing the binaries? There is a checkbox in the installer for that. You can create a database using the tool dbca (Database Creation Assistant) in the $ORACLE_HOME/bin folder.
Instance not running.
pmon is a vital process for the instance (processes + memory) which indicates it hasn't started. Check /etc/oratab if there is a database added to the file. If yes, fire up!
# set the environment
$. oraenv
ORCLDB
# login as sys and start the database
$sqlplus / as sysdba
SQL>startup
Best of luck!
Bjarte

Service privileges for Patch Download? (Oracle 11gR2)

To perform tests in advance of an upgrade from Oracle 11gR2 to 12c on our production systems, I tried to update the database of a developer virtual machine (Windows 7). The current Oracle Database version of this old developer machine is 11.2.0.1.0.
The setup file of Oracle 12c then told me to patch to 11.2.0.2, 11.2.0.3 or 11.2.0.4 first. So I tried to find and download the Patch to 11.2.0.4 for Windows x64. The official Oracle page only lists 11.2.0.1, so I did a quick search that lead me to this page, which in turn lead me to this page.
I am used to be forced to login to download stuff from Oracle, but the second page tells me I need special support privileges. Seriously? Oracle allows me to setup a developing machine with their enterprise editions but I need support privileges to download a patch to the most recent version of Oracle 11?
Did I miss something? How am I supposed to test the upgrade process on my developing machine(s)?
Thanks for any help!
There is another way to update your database version to version 12c.
Install the new version in a different HOME, export the full database 11g with expdp tool and then import it into the new updated data instance with impdp tool.
Do you happen to know which "Customer Service Identifier" (CSI) you're using when you attempt to download the patch?
See if you can determine the "Customer User Administrator" (CUA) for your company's My Oracle Support (MOS) Account associated with that CSI.
Then send that party a request to grant you download privileges on that CSI.
You may encounter additional hurdles if the CSI in question has moved into "extended support required" status.
I had this very adventure a few months ago.
And note that though I am writing this in 2020 when Oracle 11g is out of support, my aim here is to help people work through the "not authorized to download" issue the question references - which can pertain to Oracle versions new and old.

Installing Oracle XE (older) AFTER installing APEX 10g?

Awhile back I installed the Oracle 10g XE database on my dev machine. Since then, I installed Application Express over top of the XE installation. In other words, it's APEX running on 10g. I found I don't really need APEX after all (it's turned out I'm developing in ASP.NET and Oracle instead), and I recall having more of a GUI to manage the XE 10g instance BEFORE I installed APEX.
Can I remove APEX while leaving my original XE installation? I tried to re-install the original XE, but I didn't see a way of doing this without installing a new HOME (which I'd rather not do; it confuses me). TIA.
Oracle XE comes with APEX installed, along with a ( from memory ) APEX based XE management tool. What it sounds like you actually did was was upgrade/over install a newer version of APEX, then remove APEX all together.
Probably the easiest thing to do would be to backup your user schema's using exp or expdp ( data pump ) , uninstall XE, reinstall XE and then import your user schema's. This will get XE back to how you want it.
There's a bunch of stuff (such as the PL/SQL embedded gateway) that is there irrespective of what you did. You also get a bunch of stuff under the FLOWS_020100 (I think).
What happens when you install, for example, Apex 3.2 on XE is that it creates a new schema (FLOWS_030200 or APEX_0400000 or whatever), and repoints a bunch of synonyms from FLOWS_020100 to the new schema.
Sometimes (because of the space restrictions in XE) you drop the FLOWS_020100 schema. If so, your best bet is probably to copy out anything in the database you need, un-install XE and reinstall it.
If you still have the old schema, you can have a go at following the 'reverting' instructions as you would for a failed upgrade.
AFAIK Apex installs web server and some scripts into the database. Your gui to manage xe should change, though. Are you sure you are accessing the same port?
Also, there is SqlDeveloper, quite good tool for oracle databases.
Finally, have you tried oracle ADF for application development?

Resources