Files
ROMFASTSQL/proxmox/lxc108-oracle/new-roa-oracle-server/createco.sql
Marius 4f51ee48f6 Add legacy ROA Oracle 10g server setup scripts (reference)
Original Oracle 10g R1/R2 setup scripts and SQL migrations from 2007-2026.
Preserved as reference for understanding ROA database structure and
historical schema evolution.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 17:08:13 +02:00

41 lines
1.2 KiB
SQL

-- SE EXECUTA LOGAT CU USERUL SYSTEM
set echo oFF
spool CreateCO.log
prompt
prompt Stergere user CONTAFIN_ORACLE
prompt =============================
prompt
drop user contafin_oracle cascade;
prompt
prompt Creare user CONTAFIN_ORACLE
prompt ===========================
prompt
-- Create the user
create user CONTAFIN_ORACLE
identified by "&&coPassword"
default tablespace ROA
temporary tablespace TEMP
profile DEFAULT;
-- Grant/Revoke role privileges
grant connect to CONTAFIN_ORACLE;
grant resource to CONTAFIN_ORACLE;
-- Grant/Revoke system privileges
grant create any context to CONTAFIN_ORACLE;
grant create session to CONTAFIN_ORACLE;
grant create view to CONTAFIN_ORACLE;
grant delete any table to CONTAFIN_ORACLE;
grant drop any context to CONTAFIN_ORACLE;
grant execute any procedure to CONTAFIN_ORACLE;
grant insert any table to CONTAFIN_ORACLE;
grant select any dictionary to CONTAFIN_ORACLE;
grant select any sequence to CONTAFIN_ORACLE;
grant select any table to CONTAFIN_ORACLE;
grant unlimited tablespace to CONTAFIN_ORACLE;
grant update any table to CONTAFIN_ORACLE;
grant create public synonym to CONTAFIN_ORACLE;
grant drop public synonym to CONTAFIN_ORACLE;
spool off