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;
Related
An error was encountered performing the requested operation:
ORA-01109: database not open
01109. 00000 - "database not open"
*Cause: A command was attempted that requires the database to be open.
*Action: Open the database and try the command again
Vendor code 1109
Please use below syntax to open the database,
ALTER DATABASE OPEN;
Also you can check if your database is READ ONLY or READ WRITE using,
select name, open_mode from v$database;
To solve the issue, there are tow options, each one depends whether the database is in your own laptop or is in a different server.
Option 1
If the database is in your own laptop, please open a windows cmd and run:
CMD> sqlplus / as sysdba
SQL> ALTER DATABASE OPEN;
or
SQL> SHUTDOWN IMMEDIATE
SQL> STARTUP
Option 2
If the database is in another server, you would need access to it, either is a Linux or a Windows Server. The process is more or less the same as before for windows, for Linux/Unix is a bit different:
You connect by SSH to the server where the database is located with the user who owns the database sofware.
You load the environment variables as ORACLE_HOME, ORACLE_SID if they are not loaded by default.
Then you run the commands shown above.
By the way, you need the user SYS, you cannot do this with HR, which is basically an example schema.
I am very much new to oracle database, please forgive me for any technical errors in my question. I am using oracle 19c and I think my password for "system" user is different than the password for "sysdba". At the time of installation I used the same password every time but now while connecting to system or "\ as sysdba" , there is no problem connecting but when I type the password for "orcl_listener" or "orcl" or "sysdba" , the password is wrong . for example:
conn sysdba
Enter password:
ERROR:
ORA-01017: invalid username/password; logon denied
when I create a new connection in SQL Developer, I use a username as a system, and the password is correct.
success
when I create a new connection in SQL Developer, I use username as \ as sysdba and password is correct .success
when I create a new connection in SQL Developer, I use username as sysdba and password is correct .not success and error says Status: Failure -Test failed: ORA-01017: invalid username/password; logon denied
.I am such a new user, if possible please provide me basic details of oracle databases in the simplest ways.
Now the second problem is that after creating a new connection in SQL developer using system username as its password is working, I expanded connection and at the bottom, I right-clicked on other users and created a new user with username "hr" and here it says "ORA-65096: invalid common user or role name".when I used c## as prefix no error occurs but I don't want any c##, it means it has to be a local user but where is option to create a local user?
please help me.
To understand common users and local users you have first to understand multitenant architecture in Oracle: container database (CDB) and pluggable databases (PDB).
In multitenant architecture you can only create a local user in a PDB.
To create a local user connected with SQL*Plus as user SYS:
Check your current CDB/PDB
show con_name
List existing PDBS
show pdbs
Go to an existing PDB:
alter session set container=mypdb;
Check your current PDB
show con_name
Create a local user in the current PDB and grant some basic privileges:
create user myuser identified by "mypwd" quota unlimited on tablespace myts;
grant create session to myuser;
grant create table to myuser;
To connect directly with SQL*Plus to this PDB you must use the Oracle Net service for this PDB:
sqlplus myuser/mypwd#myhost:myport/mypdb
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.
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
I recentely installed oracle 11g in my windows xp(virtual box guest) i tried to login to sqlplus using scott/tiger credentials. but it throws the below error.
ORA-28000:THE ACOUNT IS LOCKED.
could someone please advise me on this.
You'll have to log on using a DBA account and unlock the SCOTT account using
ALTER USER scott ACCOUNT UNLOCK;
UPDATE
To log on as the SYS user, use this (this will only work locally):
sqlplus /nolog
sqlplus> conn / as sysdba