Is it possible to run Oracle on Windows XP without admin rights? - windows

I have shared computer, where admin install Oracle XE. But I cannot e.g. create new user, because I have not rights in OS, afaik.
In Oracle documentation written that DBA should be member of administrator group.
Does exists way that I can manage local instance XE without admin rights?
I need start/stop database, connect/disconnect, kill session etc. It is need for test my Java application.
Thanks.

You don't need an OS user with admin right (once Oracle is installed and running).
Just connect as SYSDBA then you can create new Oracle users and manage the complete database..
(I do that on XP as well - working with regular user, but connecting as SYSTEM or SYS with the SYSDBA role if I need to configure something in Oracle)

Does exists way that I can manage local instance XE without admin rights?
Probably not ... if that's what the Oracle documentation says.
A sensible strategy would be to discuss your problem with the admins. Point out that it makes it difficult for you to do your job if you don't have access rights. If they won't grant you system Admin rights, ask them to suggest alternatives that will allow you to do your job.
It may be simply that they need to grant you additional rights in Oracle.

How about getting admin rights in a Virtual Machine? See virtualbox.org.

From XE manual here :
" On each platform, if the OS authentication user group does not already exist, it is automatically created when you install Oracle Database XE. In addition, upon installation on the Linux platform, the user account oracle is automatically created and placed in the dba group. Upon installation on the Windows platform, the user performing the installation is automatically added to the ORA_DBA group. On both platforms, you can add other host users to the OS authentication user group to enable them to connect to the database with the SYSDBA privilege. "
Since installation on windows needs admin user which I assume you are not, so it renders the automatic addition of that admin user to ORA_DBA group useless for you.
So what your admin can do immediately after XE installation on this shared machine is just add your non-admin OS user (local or domain level, whatever) to the newly created OS local group "ORA_DBA". Once this is done, you can simply open the sqlplus prompt and connect with SYSDBA privilege using your own non-admin user in future:
connect / as sysdba
However, you will still not be able to restart the Oracle service or the TNS listener, even if you are in the ORA_DBA group.

Related

Problem with RCU when configuring Oracle 12C Forms

I have installed oracle 12c and weblogic server installed.
I have configured web logic server and it is up and running.
Next step is to configure Repository Creation utility and to proceed with Forms configuration.
I opted "Prepare Scripts for system Load" because we do not have sysdba permission users.
How to configure RCU without knowing the username and password?
Note:I have the host and service details.
Refer the screenshots.
enter image description here
Thanks
Sudha
You can't. Username and password are obligatory.
Default username is SYS; if you use it, role must be SYSDBA. Other usernames would use NORMAL role.
If you don't know those credentials, ask your DBA; they know everything about it.

How log in oracle database as administrator, if my user account is locked

I have one user in my database, and he is locked. I want to unlock account, but for this I must log in as administrator, when I input in command prompt:
sqlplus "/as sysdba" I got the error ORA 01031: insufficient privileges. Say me please, how I can unlock my account..
If you've forgotten all your passwords (!?!?) You won't be able to do this remotely. Log on to the database server with an account that is a member of the OS 'dba' group ('ora_dba' on Windows). This will be the OS account used to install Oracle. Then you should be able to 'sqlplus / as sysdba'. That will connect you as 'sys', using OS authentication. The 'ora-1031' indicates you are trying to connect remotely with a password.

Times Ten user privs

We have a times ten instance created by another user on a windows server 2008 r2 standard. I've created a dsn but when I try to connect it gives me a
7001:User authentication failed
On investigating some more, I understand that as the instance admin is different I don't have privs. But what do I need to do to get privs to connect and make changes?
Thanks!
The solution for me was to create a new internal user with admin rights to the cache db and it started working fine.

Oracle installation and login errors

I installed oracle 11g on my laptop and I am having two problems, I can not login to sqlplus it wants a password and login which I do not have. Is there any default user name and password I can use?
The other problem is that I can not connect to my localhost its saying
Enterprise Manager is not able to connect to the database instance. The state of the components are listed below
Database Instance
Host
Port
SID
Oracle Home
How can I overcome this?
To log in as sysdba, make sure you are connected as the Oracle user (whichever one you chose), and type:
$ sqlplus / as sysdba
No password required, as long as you're the right user.
To be able to connect to the database, it must be started, and the listener service must also be started. To check listener status:
$ lsnrctl status
To start/stop it, replace status by start or stop. If you installed named listeners, append the listener name to the lsnrctl commands above (i.e. put the listener name after the status/start/stop command).
I'm assuming you installed oracle on Windows:
If you have been able to connect to the database using sqlplus / as sysdba then your listener is up and you are connecting on the box where oracle is installed. If you installed oracle on windows, a user group called ora_dba will be created and your windows account willl be in that group. This grants you the sysdba role and allows you to log on to the database using sqlplus / as sysdba.
During istallation of the database you must have been prompted to enter a password for at least SYS and SYSTEM unlocked accounts.
To start enterprise manager try the command line:
emctl start dbconsole
or start the windows services snap in and check to see if the service OracleDBConsoleSID (SID is the ORACLE_SID for your database) is running. If not start it. When the service starts successfully, try running EM again.

Unable to grant DB2 privileges to my domain account

I am unable to grant my primary work domain account the privileges to create database objects in DB2. Here is my current setup:
OS is Windows 7 enterprise 64-bit
DB2 version 9.7 Enterprise edition
DB2 extended security was enabled during installation
My domain account is member of the Administrators group as well as the DB2ADMNS and DB2USERS groups.
The DB2ADMNS group is granted all authority privileges.
DB2_GROUP_LOOKUP is set in the environment to LOCAL
DB2 sysadm_group is set to DB2ADMNS
The DB2 instance has been restarted but my domain user still cannot create database objects like bufferpools. I created a local administrator account and added it to the DB2ADMNS and it was able to create the bufferpool objects.
I tried using the db2admin user to give all authorization privileges to my domain account in the DB2 control center but my domain account is not showing up in the drop down containing the users.
I removed the DB2_GROUP_LOOKUP environment variables and restarted the DB2 instance then tried to give my domain account user enough authorization privileges and now my domain account in showing up in the drop down. Once the changes are applied, I restarted the database instance and tried the bufferpool creation and it still fails.
Am I missing a configuration step in giving my user enough privileges? I need to have this configured as the IBM product I am installing fails if this privilege is not working. Thanks.
In 9.7 DB2ADMNS is not supposed to be able to access any data. SYSADM level accounts are reserved for maintenance tasks and should not be used for data access. Remove your connecting user from any special groups, and grant after that the proper access rights.

Resources