Unable to create database using DBCA - oracle

I have installed Oracle 11g on Windows 7 successfully. But, when I am creating a database using DBCA, it says init.ora (access denied), at the last step, and stops. I logged into the system using admin.
I have manually changed the settings of that directory where the DB file is created. But have had no success. Does anyone have a solution?

This is in Oracle 12c running on my Windows 10 PC.
Right click on the "CMD" before opening the command prompt and
Click on "RUN AS ADMINISTRATOR" so the command prompt opened with Full Administrator privileges
Call the "DBCA" assist by typing DBCA in this command window
The database creator assistant opens, and everything after this step goes very well.

Sounds like you haven't followed the installation guide. A typical error if you have not added the user to the domain group.

I jumped into the same issue today. The issue will keeping come out no matter you're logged in as admin or not (in most cases, we logged in as admin, same as me).
I get pass the issue as : press Windows key to open Start Menu, type in 'dbca', when dbca.bat shows up in Programs, right click and select 'Run as administrator', everything goes fine now !

Related

Can't open PowerShell with administrative rights

I'm running Windows 10 and a few weeks ago I managed to do something (in the middle of the night - can't remember) such that I can't open PowerShell (nor PowerShell ISE) with administrative rights anymore. When opening it via right-click -> as admin, the Shell opens and closes immediately. Opening without administrative rights works fine.
I managed to find the error through opening a cmd as admin and typing the command "PowerShell". It says (translated):
"The type initializer for "System.Management.Automation.Runspaces.LocalRunspace" caused an exception"
Google seems not to come up with similar cases. Any suggestions?
you could Try the new PowerShell Core it can do everything the normal powershell can do too
and its opensource :)
PowerShell Core
I solved it. The problem was, that I had changed the registry entries in "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion" to "%ProgramFiles%" a while ago, in an attempt to change the default location of new programs to whichever path I defined in the environment variable. Now I hardcoded it to my new desired location (on D:). I can open the PowerShell as admin again.

oracle home user

I have windows 10 64 bit
I try to re install oracle database 12c
i delete all files .. from directories .. from services. from regedit .. from temp.. from c disk .. from everywhere i remove oracle files all also i run ccleaner but when i try to install oracle database12c again
then in this step this show oraclehomeuser1 already exist :O
i dont why where it is located
any solution please
It seems that as part of the Oracle 12c installation process, you created an 'Oracle Home User' account. This user account is used to run all database services. You haven't done anything wrong here: I've created Oracle Home Users for Oracle 12c databases I've set up.
Evidently as part of your uninstallation you didn't remove this user account.
Remove this user account, using this Super User question if the user doesn't appear in Control Panel, and try again.
press WIN+R , Type lusrmgr.msc, press enter, double click users in left pane, delete the Oracle home user you create during instalatiom –
Tayyab Mazhar
Thanks Tayyab.. this is perfect answer.

How to prevent oracle database to start when windows boots up?

I installed Oracle database 11g r2 express in my windows machine. But, whenever I start windows, Oracle gets started and I have to stop the database. How can I prevent it from starting at the start up of windows? i tried to find out it in startup application lists, but it is not there.
I am currently using windows 8.1.
Thank you.
Go to Control Panel, Administrative Tools, then Services.
Look for a Service called OracleServiceXE. It should have "Automatic" Startup Type. Change it to Manual or Disabled by right-clicking it and then choosing Properties.
Works for me on Windows XP and 7. I don't have a Windows 8 machine, but it should be the same steps.
I think the solution provided here is useful:
https://dba.stackexchange.com/questions/62699/revised-question-how-do-i-prevent-oracle-12c-database-from-starting-on-machine
You have two solutions:
1- In Windows OS's in the run, type services.msc and Enter, from the list of services find OracleService and right click and choose Properties. In the General tab in the Startup, Type section choose Manual and click OK and exit. From now on your database doesn't start automatically by your machine's start, but whenever you want to start it you have to go to services.msc and start it manually. You can also do this from Windows Task Manager(from Services tab).
2- Let the Startup Type to be automatic in "services.msc". Open the Windows command prompt (Admin) and type this statement (instead of ORCL use your SID name).
oradim -edit -sid ORCL -startmode manual
Now your database is in a state that idiomatically called idle. You can start your database by logging to SQL*Plus with sysdba privilege and then type startup command.
In Oracle 12c or higher just go to Windows Registry
HKEY_LOCAL_MACHINE > SOFTWARE > ORACLE > KEY_OraDB19Home1 > ORA_ < SID > _AUTOSTART
Change the parameter from TRUE to FALSE

Stop CMD from always opening with administrator privileges

No matter how I open it, cmd.exe always opens with admin privileges. How can I open it without? Is there some registry setting missing? Even if I open it directly from the run dialog or by double clicking in the system32 folder it still opens with admin privs.
Thanks.
Found out I was missing a registry key. In HKEY_CLASSES_ROOT\Directory\shell\cmd I was missing the String Value "Extended". Added this back in and restarted the machine got rid of the defaulting to admin privileges.
EDIT: I had UAC turned off for my profile (to stop incessant "are you sure you want to open this .exe" warnings), and turning that back on has stopped cmd always running with greater privileges.
After some unclear actions (switch UAC on/off ?) I ended up in the same situation as described above:
Cmd.exe always starts in Adminstration mode.
Linking in VS failed with the message:
Project : error PRJ0003 : Error spawning 'C:\windows\system32\cmd.exe'.
The Properties | Compatibility tab is greyed out, so switching this off seems impossible (Compatibility modes cannot be set on this program because it is part of this version of Windows).
To recover from this situation you have to edit the registry to remove the RUNASADMIN preferences that is associated with cmd.exe.
The 'RUNASADMIN' preference is stored in these registry keys:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
Delete the values named c:\windows\system32\cmd.exe and you are back in business !
Kees
Right click on the cmd.exe, select properties and check the compatibility tab. Is the Run this program as an administrator checkbox checked?
This is only happening because you're logged in as a user with administrative privileges.
Since doing so defeats the entire Windows security model, you shouldn't be doing that in the first place. Create a standard user account and log in with that, instead. The command prompt should then not open with administrative privileges since you don't have administrative privileges.
If, as a standard user, you need to open a command prompt with administrative privileges, you'll need to right-click on the shortcut and select the "Run as Administrator" option (just look for the UAC shield). You'll need to provide sufficient credentials to authenticate yourself as an administrator, and then you'll have the authority to wreak whatever havoc you wish.
Found a way to run as a specific user even when UAC is turned off from http://www.sevenforums.com/general-discussion/235987-run-cmd-exe-given-user-administrator-command-line.html
This is the way to start cmd.exe as any user. Replace "username" with the correct one:
cmd.exe> runas /user:username "cmd.exe"
Right click on the cmd shortcut, navigate to properties, select advanced options and uncheck the 'Run as admin' option.
Check this video for better understanding - https://www.youtube.com/watch?v=3Mxh5TNSIl8&list=PLg8CURsOKswrzPs9fMhnmdy9TP7AkOOX1&index=1

Can't add new Redirected Port in Windows 7 after installing RedMon

My operating system is Windows 7 32bit. I installed RedMon1.7, Ghostscript 8.71 and GSview 4.9; installations were successful.
I went to Add New Local Printer in Windows Devices and Printers, clicked on Create A New Port, and selected Redirected Port from the Type of Port list. Clicked Next and in the Add New Port window I named RPT1: and clicked OK but it says Specified port cannot be added. Operation could not be completed (error 0x00000001)
I tried giving different names to the port, RPT2:, RPT4:, VPport: etc but all gave same result. Disabled Windows Firewall and tried but it continues to give same error, Disabled the Antivirus (Avira) but no change.
What can be preventing windows 7 from adding redirected port?
BTW I was following instructions in this tutorial in order to create a postscript printer.
http://www.stat.tamu.edu/~henrik/GSPSprinter/GSPSprinter.html
Appreciate any ideas or suggestions. Thanks
Run cmd.exe as Administrator and then run:
rundll32 printui.dll,PrintUIEntry /il
from the elevated cmd.
Go to your Start Menu,
Type Print,
Right-Click "Print Management",
Select "Run as administrator",
In Print Management; Expand "Print Servers" and Select "Ports".
Right-Click in the "Ports" pane (on the right hand side) and Select "Add Port...".
I'd also recommend configuring a Port from Print Management, as opposed to trying to do it in a Printers Properties. ;)
Adam Reed describes a workaround in his blog:
http://borntoidentify.blogspot.com/2010/09/configuring-virtual-printer-using.html
Not very comfortable, but works for me ...
EDIT: This link appears broken, but here's the content:
https://web.archive.org/web/20120628120209/http://borntoidentify.blogspot.com/2010/09/configuring-virtual-printer-using.html
The gist is that under Win7, you need to run explorer with elevated rights. This can be done using another browser, or, as mentioned in the comments on the original post:
Open a CMD window by right clicking and running as administrator
Kill the process explorer.exe from the task manager
Run explorer.exe from the command prompt window, now as an administrator.
Be very careful when running explorer as an administrator.
You need to enable Admin mode OR log with the Admin account!
This is cause by the new Vista/Win 7 security system.
Try reseting the firewall (Windows 7)
(be warned tho, the firewall will reset to the default setting)
*go to Control Panel
*go to Windows Firewall
*on the left choice pick "Restore Defaults"
It works for me, i hope it works for you.
F3lix's rundll32 method works but after you've created the port you most probably would need to configure its settings. Elsewhere in the net there are instructions to open Port management as Administrator, but in Windows 7 Home that seems to be very much impossible. One can only view the virtual port settings. The only workaround I found is to edit registry directly with the Registry editor at
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Redirected Port\Ports\RPT1:
(Replace your port name in the end.)
It seams to be tricky. In my case it only works, after creating an new User account with the name "admin" / group " Administratoren" (de).
Before with my real Nickname User "Nick.." / group "Administratoren" (de) it dosent work´.
Takes several hours to discover ...
Accepted solution did not work for me...I found an other command line that worked well (I'm on windows 10):
%systemroot%\system32\printmanagement.msc
It opens the print management in administrator mode, and I was able to create the port with no problems.

Resources