I am a new user in SQL Developer Oracle 12c database and when I try to create a new user:
CREATE USER usera IDENTIFIED BY mypsassword
I get this error:
error starting at line 2 in command:
CREATE USER usera IDENTIFIED BY mypsassword
Error at Command Line:2 Column:13
Error report:
SQL Error: ORA-65096: invalid common user or role name
What can I do?
Thanks for your help guys
Without specific knowledge of Oracle it seems to me that Oracle is nudging you to use less generic usernames. Try replacing usera with something else for example pluto.
Related
I want to create a new profile in SQL plus.
I started off by creating a user, this worked:
create user myuser
identified by password;
Then I tried to create a profile, this didn't work:
create profile myuserprofile limit
sessions_per_user 2
connect_time 120
idle_time 30
failed_login_attempts 3
password_life_time 365;
This is the errors i received:
ORA-65048: error encountered when processing the current DDL statement in pluggable database XEPDB1
ORA-01435: user does not exist
I tried it on my laptop, the same result.
the next step would be to alter the user to have the profile.
Edit:
I connected as the system and was able to get rid of both the errors:
ORA-65048: error encountered when processing the current DDL statement in pluggable database XEPDB1
ORA-01435: user does not exist
However, the error still arises when I try and create the profile on my user
Edit2:
FIXED
I realised i did not have DBA privileges on my user.
GRANT DBA TO XYZ;
Thanks
When I create a user, it messages "error15063"
login already has an account under a different user name. (Error: 15063)
The login was mapped to the database as the dbo, which is wrong. It happened because this account actually created a database during the installation.
The login already has an account under a different user name. (Microsoft SQL Server, Error: 15063)
To resolve this
Please run the script against your database:
I am trying to create a user using DDL in DB2. I tried this:
CREATE USER 'test_user' IDENTIFIED BY 'password';
and I got this error message:
An unexpected token "'test_user'
IDENTIFIED BY 'password'" was found following "CREATE USER ". Expected tokens may include: "<space>".. SQLCODE=-104, SQLSTATE=42601, DRIVER=4.24.92
when I remove the apostrophes:
CREATE USER test_user IDENTIFIED BY password
I get this:
An unexpected token "USER" was found following "CREATE ". Expected tokens may include: "VARIABLE".. SQLCODE=-104, SQLSTATE=42601, DRIVER=4.24.92
I have full admin rights and I am running DB2 Warehouse on Cloud Type:Enterprise Plan - Single Node
When you take a look at SQL statements supported by Db2 Warehouse on Cloud, you will notice that there is no CREATE USER statement. Hence the error message.
Check out the section on user management or see the API to create a new user.
I have a database A where I have CREATE DATABASE LINK privilege and a database B where I can connect as a read-only user (I don't have the privilege here). I just want to do SELECT queries.
I would like to know if it's possible to create a database link on this user.
I did many researches about my problem, but nothing works.
I also tried SET TRANSACTION READ ONLY but it did nothing.
CREATE DATABASE LINK dblink_name
CONNECT TO user_with_read_only
IDENTIFIED BY password
USING('(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=<host>)(PORT=<port>))(CONNECT_DATA=(SERVICE_NAME=<service_name>)))
I got those errors:
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-16000: database open for read-only access
I wan to change the password of the "system" user using sql developer but I get the following error when I run this command
I create a connection using the system user and run the following command
alter user system identified by "myPass" replace "myPass" CONTAINER=ALL ;
this is the error that I get
Error SQL: ORA-65050: Las DDL comunes solo se permiten en CDB$ROOT
65050. 00000 - "Common DDLs only allowed in CDB$ROOT"
*Cause: An attempt was made to issue a Common DDL in a pluggable database.
*Action: Switch to CDB$ROOT and issue the Common DDL there.
Confirmación terminada.
it says that I need to switch to CDB$ROOT but I don't know what that is and how to switch to that mode using sql developer
The error message is very clear: Switch to CDB$ROOT - there is nothing confusing about that.
You don't know how?
alter session set container = cdb$root