Will I lose my databases after re installation of pgAdmin? - windows

I was facing an error in starting my pgAdmin which is
and when I deleted few unwanted file and uninstall some programs to improve system performance. Now I'm getting another error in starting my pgAdmin which is
I don't know perhaps I mistakenly deleted a necessary .dll file.
So how will I fix this problem?
Is there some way of fixing so that I will not lose my databases?

pgAdmin merely accesses existing databases, and is not the database itself. Therefore, removing/replacing/updating pgAdmin will have no affect on the underlying database.
pgAdmin can delete your database, etc, but you'd have to actually execute delete commands in order to do that.

Related

remove oracle multiple home

I don't know what I did. I accidentally installed multiple Oracle on my machine. It could have been that I did not realize I installed successfully. I end have 5 Oracle home folders
anyway, I kept having problem connecting to Oracle. SQL developer works, but sql/plus and C# have not been working.
There is a chance multiple Oracle Home cause the problems. I don't know. I decide to uninstall and reinstall again and see what happen
I run deinstaller. It removes successfully on dbhome_5 folder. The files in dbhome_5 folder still exist, I cannot uninstall Oracle in other 4 folders
dbhome_1
dbhome_2
dbhome_3
dbhome_4
Deinstaller could not detect anything. Therefore, I cannot uninstall
Those 5 instances still exist.
I can install against. That mean dbhome_6. I don't know it will create confusion again.
How to uninstall / completely remove Oracle 11g (client)?
This page tell us how to clean remove. I don't to do uninstall because I cannot. Do I have to manually remove all the files?
I just want the machines to have clean environment before the next installation
I have the feeling that was what happened before. I fail to configure. I uninstall. Then I have 5 folder
I am using Oracle 11 universal installer version 11.2.1.0
Thanks
Having done this before myself, I know how confusing it can get.. worse even, that the configuration for different oracle data access clients about which home to use can be in different places, so your sql plus can end up using one install whereas your c# is using another
I'd recommend to follow the manual removal instructions you found on the linked page; do it for every oracle home you can find (search your entire drive for e.g. tnsnames.ora)
Remove everything (maybe preserve any tnsnames you find as it will make configuring the reinstall a bit easier) and then reinstall it, just once this time:)

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.

Can't generate table from Oracle Designer 6i

a little background, I really don't know any technical terms from Oracle. My company have a pre built machine and I'm trying not having to go there backup my files and lose a day of job because I cant.
Recently I'm learning how to use Oracle Designer (6i) to build a diagram and later a table so I can request it to be created... While using the software it requested to install some file for the repository... after doing it, It screwed up every Oracle product I was using... I couldn't connect to PLSQL or even the designer...
After fixing some registry to point to the right TNSNAME and manually adjusting PLSQL, I managed to access both. The problem in hand is in oracle Designer at the "Designer Editor", when I right click a table and select generate, the message bellow shows up
Message
-------
CDD-23564: The file "C:\ORACLE\DSG6I\BIN\cds61.dll" could not be loaded or does not exist.
Cause
-----
The specified file or one its dependent files could not be loaded.
This may be because a file has not been installed, or is not
correctly defined in the system registry.
As an example dependency, the Forms Generator files require the
Form Builder files installed as part of Developer.
Action
------
Check the registry settings for the location of the required
file. Also check the product and any required dependencies
e.g.Developer have been installed correctly.
If necessary, try reinstalling.
The dll mentioned IS and EXISTS on the mentioned folder.
Considering I don't have the Oracle Developer 6i intaller, what can I do? What registry entry should I update?
Designer 6 is long out of support. Oracle has a free tool, SQL Developer Data Model, which does not break.
Even Designer 9i was flaky and would crash at random intervals and poke along with larger schemas. Anything over hundred tables could take days to edit. Ah, good times...
I managed to fix the problem by copying and replacing the whole ORACLE_HOME\DSG6I folder (in my case c:\Oracle\DSG6I, for those confused in terms like me) and the oracle system registry (regedit > HKEY_LOCAL_MACHINE\SOFTWARE\Oracle) from a coworker machine!

Is rollback possible in Database-project?

I have created database project in visual studio 2013 from existing database. Then I have done lot of changes in database project like modify stored procedures, post deployment script, table structure, etc . Now database project is ready to deploy. But I am worry if any script fails then How I can retain the original state though it build properly.
Please suggest that if any query fails then I want ROLLBACK the all changes that I have made in database project.
Firstly you need to trust your tools and either believe they will work or find other tools.
While you are building the trust I would add a create backup to the pre-deployment script or run a backup before you deploy then if anything goes wrong you can restore and figure out what went wrong.
As David said to roll-back, you would get the previously deployed dacpac and generate a new deployment script from that but fixing forward is almost always the correct thing to do rather than rolling back to a previous version.
ed
Have you been checking your changes into version control? If so, all you need to do is to revert back to the last known good version.
Or... simply work out why it's failing now and fix the root cause?
I used Db projects some time ago and as far as I remember the deploy script was wrapped in a transaction. It is possible to generate sql script without executing it. That setting was somewhere in DB project settings. You can take a look inside that script and make sure that it'll rollback on error.
Doing a backup would still be a recommended practice especially when you deploy to production.
when working on important scripts I developed a habit of always starting a transaction and commenting out the commit.
If you accidentally run it, it won't take effect. The commented out commit would only come out when the thing was done.
While this answer indicates that you CAN revert in source control (Assuming SSDT at this point) it would be nice to get a pointer to the exact process to do this. On a file by file basis the history works the same but how to revert the entire database at once isn't immediately obvious.

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

Resources