how to recover oracle database using contro.dbf,sysaux.dbf? - oracle

I had a problem while accessing oracle database ,so then i copied the old oraclexe folder into a new drive.Later I have installed the oracle 10g express edition.While copying only two files goit copied i.e., control.dbf,sysaux.dbf.Can anyone tell me whether I can recover the database from these two files ? If yes,kindly tell the procedure to recover ?

Related

Connect to Oracle database Using ssis

I am all new with SSIS ( datatools 2010 ),I had installed oracle 11g enterprise edition , I want to use oracle as source ,i used OLE DB source "Microsoft OLE DB Provider For oracle" but when i test connection I get this
enter image description here
please can someone tell me what i should do .
Thank you in advance .
You need to make sure that you have the correct version of drivers installed on a server where the SSIS package will be deployed to and executed (https://learn.microsoft.com/en-us/sql/integration-services/data-flow/oracle-connector?view=sql-server-ver15#version-support) and that the bit-count is correct (not corresponding to the Windows one, but rather to the DataTools one). In case you have 32-bit and 64-bit drivers already installed, you would also need to make sure that the Data Source component in the package is picking the correct one (it will go for the first one listed in the environment variables).

Oracle Developer Tools for Visual Studio 2017 (ODT)

I have created an Oracle Database Project Version 2 on visual studio 2017 and imported an existing database to the project to obtain the database schema on my project, and I got an SQLfile for such object in my project. The problem is when I'm modifying a table for example and saving the changes on my oracle database project and build it, I get a create script as output instead of an alter script so this script can't be deployed to my database due to "existing object error".
I tried to do it otherwise by proceeding to schema compare option:
I launched the schema comparison by mentionning my oracle database project as source and my database as target
The result of the comparison indicated that there is an non indentical object between the source and the target which was the table (because i added a coloumn to the table)
Again the problem is when I generate the update script it gives a drop/create table script instead of an alter and I can't deploy this script because I will lose data.
Does anyone have any ideas? how can I get the alter script by building the project or launching a schema compare operation?
I've found that comparing two databases DO generate a "somewhat" correct diff script (it may need some manual adjustment). So you can run the SQL file generated by the database project against a different oracle instance, and then compare both.

Windows got crashed and how to recover the old Oracle DB

unexpected Crash of windows took place. I dont have a metadata backup. After reinstalling windows i have taken the old database folder back up which has all
system01.dbf
sysaux01.dbf
undotbs01.dbf
Temp01.dbf
users01.dbf
redo01.log
redo02.log
redo03.log
Please share your recommendations to go forward.
Easiest option is to install Oracle with the same version as the old one, create a database with the exact same name as the old one and at the exact same location as the old one.
Once you have that working, shut down the database. Then copy your backup files over the new files. Start the database.

How can I completely uninstall oracle 11g?

How can I uninstall Oracle 11g from my laptop? The uninstall program that comes with the software doesn't completely uninstall all the components. I tried it with Oracle12c and it left a lot of programs. I tried to delete the files manually but some dll files in the BIN directory were are not accessible. I want to do the right thing with 11g. Any suggestions?
Thank you very much in advance.
There are some problems when I uninstall Oracle 11g (on Window 10) from my installed path "D:\app\" .This is my solution to remove oracle manually:
Delete D:\app{user}\product\11.2.0\dbhome_1
and all Oracle's files from D:\app\
If you can not delete these files, need to change the owner or add permissions
Properties>Security> Advanced> Change Owner> Advanced>Find now> Choose Users
Sometime you need to add permissions to Users: Properties>Security>Edit> Add Users> Allow ...
Delete C:\Program Files (x86)\Oracle, C:\Oracle
Delete C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Oracle -
OraDb11g_home1
Run regedit.exe>
delete HKEY_LOCAL_MACHINE/SOFTWARE/Oracle
delete HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\ORACLE
Delete HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Ora*
Start Run>Computer Management> System Tools>Local Users and Groups> Delete
all Oracle's users and groups
Restart windows.
Hope helpful for you!
First of all you should use the deinstall tool as recommended by Oracle.
Then if this fails have a look at this document: Manually Removing the Remaining Oracle Database Client Components (11.1), it provides detailed instruction how to remove everthing.
This documentation is for Oracle Client 11.1, however the principle should be the same for 12c. Actually the documentation for 10.2 is even more complete: Manually Removing the Remaining Oracle Database Client Components (10.2)
Perhaps some files are locked and you can not delete them by default, for example file oci.dll. Solution is to rename the file, e.g. oci.dll_x and then reboot your PC. After reboot you can delete the file.
Note, in case you installed 32-bit Oracle the Registry key is HKLM\SOFTWARE\Wow6432Node\ORACLE\... instead of HKLM\SOFTWARE\ORACLE\...
Before deinstalling oracle software, make sure you have deleted the oracle databases (and other services) running from the ORACLE_HOME
I have written about the different methods in which you can remove Oracle software from Linux server:
Using deinstallation tool with runInstaller
Using deinstallation tool under ORACLE_HOME
Manual Oracle uninstall

cannot save record in attached .mdf file with EF 4.0

I want to create a VS 2010 project with EF 4.0 model.
But I have no records and errors after inserting new record with attached .mdf file .
But if the base is connected to Sql Server, it works fine.
Please help me to insert records to attached .mdf db
You need to make sure DB is not in a shared folder, is on your pc, is not read only, that you have write permissions to the folder that contains it and there is no DB already attached to service with same name. Make sure you can connect with Server Explorer window first.
Consider using SQL Server CE, if you want to work with loose DB files.
Also, make sure the file is not overwritten with each build. (Use "Copy if newer", not "Copy always".)

Resources