ORA-01031: insufficient privileges on Oracle 11g on installing two times - sql

Hi I will say directly First i tried to install oracle 11g and forgot to update password in password management during the installation so i followed a youtube video to uninstall oracle 11g completely. Then i installed it a second time but during installation the setup said already a db name orcl exists.
and now when i tried this command sys/oracle as sysdba it throws me the following error:
ORA-01031: insufficient privileges
and also it asks me a user-name i dont have any username or password.
I am new to Oracle database. I usually work with H2 DB.
What can i do ? un install or does anyone knows any solution

Related

Installing RCU for Oracle Data integrator runs on Error

I am trying to installing RCU for Oracle Repository Creation utility however everytime I try to install the development repository it runs on error.
Steps to reproduce the issue.
I run rcu bat file
Create repository/system load and product load
3.Choose oracle as database type/hostname localhost, port 1521 servicename xe, username sys and the password (I am able to login into oracle database with this login information) (I am using oracle 18c express
I am using the prefix dev
I am adding password for schemas, supervisor, and for the repository user.
I am not touching the tablespaces
I start the install and several error messages are dropping. like
Ora-65096 invalid common user or role name
Ora-01917 DEV_STB user does not exists
Ora-00955 The name has already been in use by another object.
My question what could be the problem with the installation of RCU and How can I resolve the issue ?
Funny thing is I am trying to install odi and RCU based on step by step video still something went wrong...
The issue here is you are logging to CDB with the service name XE. You need to log into the PDB (Plugable database).
Just change the service name from XE to XEPDB1 while connecting to the DB through RCU and your issue should be resolved.

How to connect the database using oracle jdeveloper with java?

I am new to Oracle JDeveloper. I have to create a database on Oracle JDeveloper, but it is showing the error:
Test failed: ORA-28000: the account is locked.
I checked with SQL*Plus, and it is not entering the database account.
How do I fix this?
The HR account is locked and you cannot connect to it until you have unlocked it.
Log in to Oracle (either in JDeveloper, SQL Plus or any other client) as a privileged user (i.e. run SQLPLUS / AS SYSDBA from the command prompt) and run the command:
ALTER USER HR ACCOUNT UNLOCK;

Can't login to Oracle SQL Command Line

I tried to find answer to this question but I didn't find any.
I just installed Oracle 11g XE2 on Windows 8.1 PC.
then, I could login to Application express at http://127.0.0.1:8080/apex/apex_admin with username: ADMIN and password given at time of installation.
But when I try to use same username/password to login to SQL command line through start menu (from same local computer) it gives me
ORA-01017: invalid username/password; logon denied
Failed attempts
So, I created a new workspace. while creating workspace it let me create new schema and administrator user for schema.
Then, I again tried to login to SQL command line using following command and new user credentials but still can't login.
CONNECT username/password
I tried to create new user form Application express home->workspace Task->create user with Account privileges as
Workspace INTERNAL
Default Schema APEX_040000
User is an administrator: No
User is a developer: Yes
Application Builder Access Yes
SQL Workshop Access Yes
Team Development Access Yes
Account Availability Unlocked
but I still can't login to sql command line with new user and same command
CONNECT username/password
this is the first time I am trying to install a database. Please help me.
Thanks.

Trying to run Script for Oracle 11g Database as System

I just installed Oracle 11g Express and wanted to run a script, but it says I have insufficient access.
Does the system user not have superuser access from the start?
Below is a list of the commands I was trying to issue. Is there a way to make sure that my system user have sufficient privileges to run these commands ?
GRANT EXECUTE ON sys.DBMS_REPUTIL TO SYSTEM with grant option
GRANT EXECUTE ON sys.DBMS_EXTENTS TO SYSTEM with grant option

Cannot connect to database in new installation of Oracle 12c

I am new to Oracle. I did a fresh installation of Windows 7 x64 on my laptop to install Oracle 12c Enterprise Edition (for learning purpose).
While on admin windows account, I first made a standard windows user with a password to use during the installation. The installation went fine as well as the creation of default ORCL database. The only warning I got was "The selected Oracle home is outside of Oracle base" which I fixed by going back to directories option and setting the directory from "Admin Name" to "Oracle" and it adjusted all directories according to "Oracle" name (I found this solution on internet).
Now after system restart, I am trying to connect to ORCL database using username and password I defined in setup and it just keeps telling me that my logon is incorrect "ora-01017 invalid username/password logon denied" whether I use SQL Developer or SQL Plus command line ?
I have tried searching on internet and didn't find anything much useful or say it's too technical that I don't understand, can anyone explain in simple way that what should I do to make this thing work ?
Thank you and sorry if I sound frustrated, I did this installation twice on Windows 8 which led to errors in my OS then switched Windows 7 and now this third installation is also leading to this error.
Open SQL Plus and type this "Sys as SYSDBA" for username and don't type any password and it will automatically connected.
Enter user-name: Sys as SYSDBA
Enter password: (don't need)
Screenshot
http://i.stack.imgur.com/E4seR.png
remember password is case-sensitive by default, maybe this could be your problem.
in oracle 11g and 12c this parameter is case-sensitive., so check your password and write it as you created.
try to login with a user that have CONNECT grant. sys or system should work.
I can relate since I went through the same thing recently. Under Windows 10 (2020).
In my case, I use Spanish language computers, and by default, Oracle 12c for Windows expects an ENGLISH language character set or whatever.
SOLUTION: Go to Windows Regional Settings and select English as the default "regional format". In my case I went with "Spanish (United States)". Then restarted SQL Developer and BOOM: No more cryptic "ora-01017" errors!
GOOD PRACTICE: I only added "SYS" as SYSDBA to connect for the first time (since I have no other users YET). From the much-expected SQL Developer's Worksheet (SYS as SYSDBA) I created a "normal" user. Then, I created a "default (normal)" connection profile for that new user and started doing DDLs from that connection.
It works flawlessly from there. Hope it helps in your case!