error ORA-65096 in Oracle 19C when I try to create user from java - oracle19c

I have installed oracle 19c on my laptop and started my script which creates some users. I get following errormsg:
Error Msg = ORA-65096: Ungültiger allgemeiner Benutzer- oder Rollenname
I researched this issue and founded this solution:
alter session set "_ORACLE_SCRIPT"=true;
I tried this out from sqlplus and I can create user in sqlplus BUT when I create the user from the java script I get the same errormsg.
What can I check?
Any Idea?

Related

Problem when trying to create a RDS database

When I try to click on 'Create Database', the following message appears to me.
Cannot find major version 5.7 for oscar

How can I call a custom Django manage.py command directly from code with specific database connection

i followed this solution to run customer django command programmatically , but it is limited for just one database connection.
I have django app configured with multiple database , is it possible to run custom django command using specific database connection?
exactly like when we use connections["DB_NAME_CONNECTION"].cursor() to execute an sql query
thanks a lot for your help!
One option is to create a new settings module (here's a guide) that contains your specific database connection configuration, and then use that settings module when using call_command():
management.call_command('mycommand', '--settings=mysite.settings.specificconnection')

Running as user 'root' is a security risk, aborting

I was following this link:
http://www.mindissoftware.com/2014/09/11/Run-Odoo-in-PyCharm-Ubuntu/
I changed the openerp-server.conf file and run the Database located at another machine using host address.
When I run the odoo in Pycharm it throws the error as
Running as user 'root' is a security risk, aborting.
Please help me
You must be trying to run Odoo with the root account: either you logged in as rootor you are running PyCharm/Odoo with sudo.
SnippetBucket Expert for Odoo
Running as user 'root' is a security risk, aborting.
Odoo rules:
1. Odoo can't run with root user, Its because of good govern of ERP Security
2. Odoo - Postgresql, You should not use "postgres" user to run odoo, instead create superuser of postgresql and connect it.
For pycharm, make sure you not run pycharm with root or pycharm don't operate terminal under root. Desktop specific stuff.
Its better to create desktop user, with same name create postgresql super user.
than with newly created desktop user use pycharm. make better to work with odoo.
G-Edit editor and plugins are my favoite editor, keep less memory and works faster. G-Edit Odoo Snippets gives faster to work.
Thanks
SnippetBucket.com

How can I login oracle as sys account using oci or anyother libs

I am try to make a tool to help create user and imp database after oracle database installed.
Because it is too difficult for my colleagues to deployment a new database by typeing commands.
Then i tried using oci to login oracle sys account,but oci replay a mistake “ORA-12154: TNS:could not resolve the connect identifier specified”,but a normal account is ok.Please tell me how can i connect oracle as sys.Thank you.
Oracle installation happens only once during deployment. So does importing of Database dumps. Why write a separate application to import/export DB dumps?
Sys account was not resolved from tnsnames.ora hence the ERROR.
You can:
Create normal user with sufficient privileges like
[oracle#App ~]$ sqlplus "/ as sysdba"
CREATE USER user1 IDENTIFIED BY userpass DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP;
GRANT CREATE SESSION, RESOURCE, CREATE VIEW, CREATE MATERIALIZED VIEW, CREATE SYNONYM TO user1;
Provide Import and Export script with necessary SQL statements.

Problem getting CouchDB running w. Django

I'm having trouble getting my Django project to work with a CouchDB database.
I'm running Python 2.6.6, Django 1.3, and Lion on a Mac
I've got Django, CouchDB, and CouchDBKit installed. I can import all of them from the python interpreter without a problem. If I go to my CouchDB database URL, I can see the db.
The problem is, when I try to go to my django project URL, I get the following error:
You haven't set the database ENGINE setting yet.
I have the following lines in my settings.py file:
COUCHDB_DATABASES = (
('my_project.my_db', 'http://127.0.0.1:5984/my_db'),
)
The only possible solution I've found so far, is to set a throwaway database in the normal database engine settings. But, this just throws another error, because Django starts looking for database tables in the throw away DB.
Edit with new info:
I'm accessing my DB via an SSH tunnel
I'm able to create and access a CouchDB from the python interpeter.
I've run a test from the python interpreter, to access the app DB (again, via the tunnel), and the returned data accurately.
It's just when I try to access the actual site from a browser URL, I get the engine not defined error.
Django seems to be trying to use a normal DB (which isn't setup), instead of the CouchDB.
Any ideas?