RESTRICTED SESSION
Hello
Someone at - it script to identify all users with the permission of "RESTRICTED SESSION", or I guess a variable binding permission?
In addition, is the best way to expel users and this database is too restricted mode:
1. immediate stop
2. start limited
Thank you
Hello
Oracle 11.2 or more, this query will display all the users who have the privilege of REGULATED SESSION system, directly or indirectly:
WITH the beneficiaries (dealer, parent) AS
(
SELECT dealer
Parent NULL AS
OF dba_sys_privs
WHERE a lien = "RESTRICTED SESSION".
UNION ALL
SELECT r.grantee
r.granted_role AS a parent
Dba_role_privs r
JOIN beneficiaries g1 ON g1.grantee = r.granted_role
)
SELECT eff.*
, NVL2 (u.username, 'USER', NULL) AS is_user
BENEFICIARIES g
LEFT OUTER JOIN u ON g.grantee = u.username dba_users
;
The result I get is like this:
IS_USER PARENT BENEFICIARY
-------------------- -------------------- -------
WKSYS USER
S/N
SYS USER
USER SYS DBA
USER DBA WEBDB
USER DBA WKSYS
USER SYS DBA
SYSTEM DBA USER
Your results will probably be a little different.
In versions 11.1 and earlier versions, you can get the same results using a CONNECT BY query instead of a recursive WITH.
Tags: Database
Similar Questions
-
Connect the restricted session
Hello
I am aware that from 10 g users (even with sysdba or session limited privs) cannot connect to an instance in session restricted by the listener.
I have an instance of database where I CAN connect to an instance in session restricted (when he is tried with a user with restricted session privilege) via earpiece. All but one single service of the lsnrctl status is RESTRICTED view.
I do not have UR = in my tnsnames file.
I do not use the name of listener LISTENER default port 1521. Name of the listener is LISTENER_HOST1. This could be the reason for this extra service? If so, how to stop this kind of connection via the listening port?
Version Oracle 11.1.0.7
>
sqlplus
SQL * more: version 11.1.0.7.0 - Production on Thu Mar 1 13:32:49 2012
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Enter the user name: virtue sysdba
Connected to:
Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
SQL > alter system enable restricted session;
Modified system.
SQL > exit
Disconnected from the database to Oracle 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
/ opt/Oracle/base/admin/Network
Oracle@host1[TESTDB] $ sqlplus admin@TESTDB
SQL * more: version 11.1.0.7.0 - Production on Thu Mar 1 13:33:34 2012
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Enter the password:
Connected to:
Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
SQL > select connections from v$ instance;
DIAL-UP CONNECTIONS
----------
LIMITED
SQL >
SQL > sho served parameter
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
service name string TESTDB.loc.org
SQL > local_l setting sho
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
LOCAL_LISTENER string TESTDB
SQL > exit
Disconnected from the database to Oracle 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
Oracle@host1[TESTDB] $ lsnrctl status LISTENER_host1
LSNRCTL for Linux: Version 11.1.0.7.0 - Production March 1, 2012 13:34:16
Copyright (c) 1991, 2008, Oracle. All rights reserved.
Connection to (ADDRESS = (PROTOCOL = tcp)(HOST=host1.loc.org) (PORT = 1521))
STATUS of the LISTENER
------------------------
Alias LISTENER_host1
Version TNSLSNR for Linux: Version 11.1.0.7.0 - Production
Early January 23, 2012 07:01
Running time 38 days 6 h 33 min 15 s
Draw level off
Security ON: OS Local Authentication
SNMP OFF
Parameter Listener of the /opt/oracle/base/admin/network/listener.ora file
The listener log file /opt/Oracle/base/product/11.1.0/dbhome_1/network/log/listener_host1.log
Summary of endpoints listening...
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=host1.loc.org) (PORT = 1521)))
Summary of services...
Service 'TESTDB' is 1 instance (s).
Instance "TESTDB", status UNKNOWN, has 1 operation for this service...
Service 'TESTDB.muc.allianz' has 1 instance (s).
Instance "TESTDB", RESTRICTED status, has 1 operation for this service...
Service 'TESTDB_XPT.muc.allianz' has 1 instance (s).
Instance "TESTDB", RESTRICTED status, has 1 operation for this service...
Service with status UNKNOWN results to have a static SID_LIST in the listener.ora - and it will probably be the entry that allows the connection.
This shutdown behavior should be as simple as to remove the database from the SID_LIST, or remove the entire SID_LIST section, listener.ora and restart the listener so that only the registered services are dynamically available.
-
ORA-01035: ORACLE only available for users with the RESTRICTED SESSION privilege
Whenever I have to connect as user sys as sysdba, I can connect at ease.
But every time that I try with a user (one for monitoring tool). I get a message, database is in restricted mode.
SQL > connect patrol05/patrol $05
ERROR:
ORA-01035: ORACLE only available for users with the RESTRICTED SESSION privilege
WARNING: You are more connected to ORACLE.Your database was opened with restricted session.
As sysdba, run the following command to session restrcited dissable the option:alter system disable restricted session;
Best regards
Norbert -
Restrict access to the database for the upgrade of the application
Hi all
We're performing an upgrade of the application that requires us to perform a lot of scripts on our server Oracle EE 11.2.0.4.
This specific database has around a website based end and a front end based client, but it is also accessible on the network through TNS SQLPLUS/Toad, ODBC, JDBC etc.
For obvious reasons, the upgrade, I want to make sure that no one else that the DBA can access the database. Usually change us the listening port of 1521 to let say 1544. This prevents all access.
But now we run in a physical Data Guard with two Standby configuration so I don't really want to play with the listener ports. The upgrade must propagate changes from primary to Standby. I could interrupt them temporarily, but I would like to avoid that if possible.
Another way I thought would work was to stop the database and open it in restricted mode. But before that, I would need to grant the privilege of the Session to RESTRICT all users upgrade scripts using (around 5 users).
This approach using the restricted mode seems reasonable?
Other opinions would be much appreciated.
Thank you
This is exactly what restricted session is for. You can do online and then kill a session is currently connected. No need to stop:
orclz > alter system enable restricted session;
Modified system.
orclz > change system disable restricted session;
Modified system.
orclz >
-
ORA-12526, TNS:listener: all appropriate instances are in restricted mode
Hello
After migrated AL32UTF8; character set. I'm unable to connect database HR of Jdev.
Can someone help me solve this problem
based on the below url, I migrated
http://rajiboracle.blogspot.in/2014/01/ora-12712-new-character-set-must-be.html
It is job for your DB admin, not for you.
So this may solve the problem:
DISABLE RESTRICTED SESSION ALTER SYSTEM;
http://oraclequirks.blogspot.RS/2008/03/ora-12526-TNSListener-all-appropriate.html
-
DMU 2.0 session disable limited
I just ran a conversion of win-1252 in al32utf8 and we noticed that restricted session was not invalid after conversion finished. Is this bug is known? I stop the GUI before I noticed, but there is nothing in the dmu0.log to show that it has been launched.On dmu1.1 and 1.2 it has never been a problem - the conversion would end disable restricted session: for example
18.14:22:28:764; V003; T; 05000 SQL text is UPDATED SYSTEM. DUM$ COLUMNS DC DC VALUE. DCCS_ID = 0 WHERE DC. DCCS_ID > 0;
18.14:22:28:764; V002; T; 05000 SQL text is ALTER SYSTEM DISABLE RESTRICTED SESSION;
18.14:22:28:811; V003; T; 05000 SQL text is UPDATE system.dum$ sqltext SET time_end = SYS_EXTRACT_UTC (systimestamp), sqlcode = 0 WHERE step # = 560 AND obj #= 0 AND order # = 563;
18.14:22:29:061; V002; T; 05000 SQL text is UPDATE system.dum$ sqltext SET time_end = SYS_EXTRACT_UTC (systimestamp), sqlcode = 0 WHERE step # = 560 AND obj #= 0 AND order # = 564;
18.14:22:29:452; V001; T; 05000 SQL text is UPDATE system.dum$ sqltext SET time_end = SYS_EXTRACT_UTC (systimestamp), sqlcode = 0 WHERE step # = 560 AND obj # 284929 & order = # = 562;
18.14:22:29:483; V000; F; 45010 thread 2, connection 2 finished subsequent conversion to the POST_CONVERSION transposition, and the elapsed time is 00:00:00.406.
18.14:22:29:483; V000; C; 05007 about to close the connection to jdbc:oracle:thin: @(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=x) (PORT = 1521)) (CONNECT_DATA = (UR = A) (SERVICE_NAME = xxx))).
18.14:22:29:483; V000; T; 05000 text SQL is SELECT USERENV('SID') FROM DUAL;
18.14:22:29:499; V000; T; 05000 SQL text is SELECT s.SERIAL # from v$ session s where s.sid = (SELECT USERENV ('SID') FROM DUAL);
18.14:22:29:499; V000; C; 05006 login ID is 2, session ID is 2840, serial number is 439.
18.14:22:29:514; V000; C; 00001 disconnected successfully from jdbc:oracle:thin: @(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=x) (PORT = 1521)) (CONNECT_DATA = (UR = A) (SERVICE_NAME = xxx))).
18.14:22:29:514; V000; F; 45010 3 screw fitting 3 finished subsequent conversion to the POST_CONVERSION transposition, and the elapsed time is 00:00:00.156.
18.14:22:29:514; V000; C; 05007 about to close the connection to jdbc:oracle:thin: @(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=x) (PORT = 1521)) (CONNECT_DATA = (UR = A) (SERVICE_NAME = xxx))).
18.14:22:29:514; V000; T; 05000 text SQL is SELECT USERENV('SID') FROM DUAL;
18.14:22:29:514; V000; T; 05000 SQL text is SELECT s.SERIAL # from v$ session s where s.sid = (SELECT USERENV ('SID') FROM DUAL);
18.14:22:29:530; V000; C; 05006 login ID is 3, session ID is 3, the serial number is 13.
18.14:22:29:546; V000; C; 00001 disconnected successfully from jdbc:oracle:thin: @(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=xxx) (PORT = 1521)) (CONNECT_DATA = (UR = A) (xxx))).
18.14:22:29:546; V000; F; 45010 Thread 1, connection 1 finished subsequent conversion to the POST_CONVERSION transposition, and the elapsed time is 00:00:00.781.
18.14:22:29:546; V000; C; 05007 about to close the connection to jdbc:oracle:thin: @(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=x) (PORT = 1521)) (CONNECT_DATA = (UR = A) (SERVICE_NAME = xxx))).
18.14:22:29:546; V000; T; 05000 text SQL is SELECT USERENV('SID') FROM DUAL;
18.14:22:29:546; V000; T; 05000 SQL text is SELECT s.SERIAL # from v$ session s where s.sid = (SELECT USERENV ('SID') FROM DUAL);
18.14:22:29:561; V000; C; 05006 login ID is 1, session ID is 2363, serial number is 157.
18.14:22:29:561; V000; C; 00001 disconnected successfully from jdbc:oracle:thin: @(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=x) (PORT = 1521)) (CONNECT_DATA = (UR = A) (SERVICE_NAME = xxx))).
18.14:22:29:561; V000; I; 40005 tasks of Conversion after time passed 00:00:47.843.
But in my 2.0 migration, I got this:
23.16:39:08:919; V001; T; 05000 SQL text is UPDATED SYSTEM. DUM$ COLUMNS DC DC VALUE. DCCS_ID = 0 WHERE DC. DCCS_ID > 0;
23.16:39:08:934; V001; T; 05000 SQL text is UPDATE system.dum$ sqltext SET time_end = SYS_EXTRACT_UTC (systimestamp), sqlcode = 0 WHERE step # = 560 AND obj #= 0 AND order No. = 1;
23.16:39:08:950; V000; F; 45010 Thread 1, connection 1 finished subsequent conversion to the OBJECT_REBUILD transposition, and the elapsed time is 00:00:00.250.
23.16:39:08:950; V000; C; 05007 about to close the connection to jdbc:oracle:thin: @(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=x) (PORT = 1521)) (CONNECT_DATA = (UR = A) (SERVICE_NAME = xxx))).
23.16:39:08:950; V000; T; 05000 text SQL is SELECT USERENV('SID') FROM DUAL;
23.16:39:08:966; V000; T; 05000 SQL text is SELECT s.SERIAL # from v$ session s where s.sid = (SELECT USERENV ('SID') FROM DUAL);
23.16:39:08:966; V000; C; 05006 login ID is 1, session ID is 682, serial number is 31.
23.16:39:08:981; V000; C; 00001 disconnected successfully from jdbc:oracle:thin: @(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=x) (PORT = 1521)) (CONNECT_DATA = (UR = A) (SERVICE_NAME = xxx))).
23.16:39:08:981; V000; I; 40005 tasks of Conversion after time passed 00:13:01.292.
This migration is on two different databases in different times, but both are on the same version of Oracle
> select * from v version $;
BANNER
________________________________________________________________________________
Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE Production 11.2.0.3.0
AMT for 64-bit Windows: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - ProductionMy Message to the log file level is FINEST
Please let me know there are more useful diagnostic information in the log files I can post.
Thank you
Ben
You mentioned the sentence talks about the handling error during conversion. Some types of errors (for example, ORA-12721) result from the fault of the sine qua non verification of the order and do not require a restart of the database. However, ONCE the conversion is complete, you must restart the database to synchronize the metadata set new character information. MISP conversion dialog box reminds the user to do and we will include a mention in the documentation.
-
Hai
I am a new bie
When I changed a database in restricted mode, what will happen to the concurrent users.
concerningWhen I changed a database in restricted mode, what will happen to the concurrent users.
You open the database in RESTRICTED mode, if so then only these session will be able to logon who got the SESSION system privilege RESTRICTED.
[http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/startup.htm#sthref1854]
If users were connected to the database and fire you alter system enablerestricted session, then those users who were already connected can perform activities there without any problem. Assume that the user has already logged in and created a table and then inserting data in there and you pulled the command session restricted, then also the user will be able to insert the rows in the table. But if there is the session, and then tries to connect it will get error unltil and unless he has the privilege of RESTRICTES SESSION sesytem. Any user who wants to connect to the database once the order has been fire should have RESTRICTED SESSION system privileges to connect to the db.
[http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/start.htm#sthref580]
HTH
AnandPublished by: Anand... on March 15, 2009 10:07
-
ORA-12721: operation cannot be performed when other sessions are active
Hello
I started my database like this:
Sorry for the duplicate.1) Change INIT.ORA file; unset parallel_server parameter. 2) Execute these commands: STARTUP MOUNT ; ALTER SYSTEM ENABLE RESTRICTED SESSION; ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0; ALTER SYSTEM SET AQ_TM_PROCESSES=0; ALTER DATABASE OPEN; SHUTDOWN IMMEDIATE; SQL> STARTUP RESTRICT pfile='C:\oracle\product\10.2.0\db_1\database\initORCL.ora'; ORACLE instance started. SQL> alter database national character set INTERNAL_CONVERT UTF8; alter database national character set INTERNAL_CONVERT UTF8 * ERROR at line 1: ORA-12721: operation cannot execute when other sessions are active
Published by: user522961 on December 10, 2008 01:51>
ORA-12721: operation cannot be performed when other sessions are active
Cause: This command can only be run when there is no other active sessions
Action: Ensure that there is no other connections to the database >
HTH
Aman... -
Simple? to restrict users to connect to the DB
How to restrict all users to connect to the database while the database is open and allowing only dba sys and system users to continue to connect to the DB?
[email protected]Sami Malik wrote:
Thanks for your comments, I've used the startup restrict to start the database in restricted mode, but still users are able to connect to the database. I also bounced the listeners on the two nodes of the RAC. Your comments are much appreciated.If users are always the option to connect this means that they are able to use the restricted Session privildge. You discover that users who are offending the restricted session, they are haivng this priv or not? If yes that remove and start over.
HTH
Aman... -
October 2014 GI OJVM PSU Combo - 'auto opatch apply' t - it does not stop instances DB?
October 2014 GI OJVM PSU Combo - 'auto opatch apply' t - it does not stop instances DB?
() 19791428 fix / p19791428)
Our process for patching Oracle 11.2.0.3 GI has not changed for many patch cycles. But I have a few questions about the PSU process October 2014 "Combo" GI which includes OJVM. We will test on the instances of laboratory first, but I wanted to see if somebody beat us to the application of this power supply and can share an overview.
Our environment:
Oracle grid Infrastructure 11.2.0.3.11 (no CARS; used only for ASM / Oracle Restart)
11.2.0.3 multiple databases of instances per unique host (Redhat Linux x 86-64)
We always manually stop EM agents then changed directory to the level root the dir containing the decompressed PSU and run opatch auto - and run as root, if system administrators grant us temp privs root on a given day. Then:
opatch auto/home/oracle/patches ocmrf - /u01/app/11.2.0/grid3/OPatch/ocm/bin/ocm.rsp
For post-install, restrict us the stopping, starting, run catbundle.sql, and then 'change the system disable restricted session.
Fast forward to October 2014 GI Combo PSU just released, README Section 'Installation of the patch 2.4.
Step 1: bring down the database on all nodes using the "svrctl stop database...". ». First of all, we will never that. What is a RAC only step? "opatch auto" always stop all Oracle services necessary for us, with the exception noted above, agent of the EM. Don't skip us this step for a GI but not RAC configuration? Again, we use only of GI for ASM.
Step 2: cd in a patch numbered directory (in this case, < patch Home > / 19791428). A bit different than before, but not confusing not.
Step 3: opatch auto apply - ocmrf < com answer file full path >.
Significant for adding 'applies' here in auto opatch syntax? Maybe it was always there, for example July 2014 patch cycle, and I never noticed...
Step 4: cd to a subdirectory of the directory of numbered, for example < patch Home > patch/19791428/19282015
Step 5: patch OJVM apply:
opatch apply - local
"Affixes Opatch - local" also run as root?
Step 6: repeat step 2 to 5 on all nodes; Since we GI but no CARS, so there are no other nodes.
Step 7: the last node, elevate dbs on all nodes via 'svrctl start the database '. Believe that we would skip because we are not CARS.
Go to Section 2.5.2: loading modified the SQL files in the database
1. start each instance then run @postinstall.sql - what is new. It seems also new on him must START each instance. In our last round patch "opatch auto" always showed all Oracle services, including any proceedings. So before our catbundle.sql, we run generally restrict us the stop and then start. "Opatch" behave differently for for example not restart us during this cycle of fix, all Oracle services when you are finished?
2. run catbundle.sql for each instance; par for the course.
Thank you.
Dana
I made the correction today. The statement does not.
as root, do 1,2,3
as oracle do the rest.
should be automatic without apply.
hope this helps.
HP
-
Oracle 11g XE on Open Suse 13.1
Hi all
I'm currently installing an Oracle 11 g Express on Open Suse 13.1 in a virtual machine.
I used the document as a reference for my installation: Oracle Database Express Edition
Comments:
I have a facility of Open Suse 13.1 vanilla except for these changes:
- I adjusted/etc/hostname to OpenSuse, in order to avoid special characters in the host name
- I increase the 2045 to 2049 MB SWAP partition to ensure the minimum configuration
I downloaded the RPM and extract. Then I started the installation
SUSE@openSUSE:~/downloads/Disk1 > sudo rpm - ivh oracle-xe - 11.2.0 - 1.0.x86_64.rpm
root password:
Preparing... ################################# [100%]
/var/tmp/RPM-tmp.jL4h0F: line 257: [: 18446744073709551615: integer EXPECTED]
Update / installation...
1:Oracle - xe - 11.2.0 - 1, 0 # [100%]
Execution of the post-installation steps...
You must run 'configure /etc/init.d/oracle-xe' as the root user to set up the database.
Afterwards, I ran the configure script using the default values:
SUSE@openSUSE:~/downloads/Disk1 > sudo /etc/init.d/oracle-xe Setup
Oracle Database 11g Express Edition Setup
-------------------------------------------------
This will configure the startup properties of database Oracle 11 g Express
Edition. The following questions will determine whether the database should
start the system startup and ports, it will use passwords that
will be used for database accounts. Press < enter > to accept the default values.
CTRL-C will stop.
Specify the HTTP port that will be used for Oracle Application Express [8080]:
Specify a port that will be used for the listener to the database [1521]:
Specify a password to use for database accounts. Note that the same
password will be used for SYS and SYSTEM. Oracle recommends using
Different passwords for each account database. This can be done after
initial Setup:
Confirm the password:
Want that Oracle Database 11g Express Edition to be started on boot (y/n) [o]:
From Oracle Net listener... Fact
Configuring database...
Configuration of the database failed. Look at /u01/app/oracle/product/11.2.0/xe/config/log for more details
You have an idea what is happening here? I have attached the newspapers and some additional information. Maybe you can help me?
Thank you very much in advance!
cloneDBCreation.log
Create controlfile reuse set database "XE".
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
BEGIN dbms_backup_restore.zerodbid (0); END;
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 error: 2: no such file or directory
ORA-00119: invalid specification for the system LOCAL_LISTENER parameter
ORA-00130: invalid listener address ' (ADDRESS = (PROTOCOL = TCP)(HOST=OpenSuse) (PORT = 1521))'
Create controlfile reuse set database "XE".
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
alter system enable restricted session
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
ALTER database resetlogs open "XE".
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
ALTER database rename global_name to "XE".
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
alter system switch logfile
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
change of system checkpoint
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
alter database drop logfile Group 3
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
ALTER TABLESPACE TEMP add TEMPFILE ' / u01/app/oracle/oradata/XE/temp.dbf' SIZE 20480 K REUSE AUTOEXTEND ON NEXT 640 K MAXSIZE UNLIMITED
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
Select nom_tablespace from dba_tablespaces where nom_tablespace = "USERS".
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
Select the sid, program, serial No., user name of session $ v
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
alter user sys identified by 'oracle '.
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
change the system of the user identified by 'oracle '.
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
modify the disable restricted session system
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
CloneRmanRestore.log
ORA-00119: invalid specification for the system LOCAL_LISTENER parameter
ORA-00130: invalid listener address ' (ADDRESS = (PROTOCOL = TCP)(HOST=OpenSuse) (PORT = 1521))'
Select TO_CHAR (systimestamp, 'YYYYMMDD hh') of double
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
declare
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
Select TO_CHAR (systimestamp, 'YYYYMMDD hh') of double
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
postDBCreation.log
Start
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
Created file.
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 error: 2: no such file or directory
ORA-00119: invalid specification for the system LOCAL_LISTENER parameter
ORA-00130: invalid listener address ' (ADDRESS = (PROTOCOL = TCP)(HOST=OpenSuse) (PORT = 1521))'
Select ' utl_recomp_begin: ' | TO_CHAR (sysdate, ' hh) double
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
BEGIN utl_recomp.recomp_serial (); END;
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
Select ' utl_recomp_end: ' | TO_CHAR (sysdate, ' hh) double
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
postScripts.log
CREATE or REPLACE a LIBRARY dbms_sumadv_lib AS ' / u01/app/oracle/product/11.2.0/xe/lib/libqsmashr.so';
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
BEGIN dbms_datapump_utl.replace_default_dir; END;
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
Commit
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
create or replace the XMLDIR directory as ' / u01/app/oracle/product/11.2.0/xe/rdbms/xml'
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
DELETE THE ORACLE_OCM_CONFIG_DIR DIRECTORY
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
DELETE THE ADMIN_DIR DIRECTORY
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
REMOVE THE WORK_DIR DIRECTORY
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
BEGIN dbms_swrf_internal.cleanup_database (cleanup_local = > FALSE); END;
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
Commit
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
/ etc/HOSTNAME
OpenSuse
/ etc/hosts
#
# hosts this file describes a number of host-address name
mappings for the TCP/IP subsystem. It is especially
# used at the time, when no name servers are running.
# On small systems, this file can be used instead of one
# "named" server name.
# The syntax:
#
# IP address full-qualified-Hostname short-Hostname
#
127.0.0.1 localhost
# a special IPv6 address
: 1 localhost ipv6-ipv6 loopback localhost
FE00::0 ipv6-localnet
FF00::0 ipv6-mcastprefix
FF02::1 ipv6-allnodes
FF02::2 ipv6-allrouters
FF02::3 ipv6-allhosts
Hello
1.
Please set up your domain in/etc/hosts FULL name
https://en.Wikipedia.org/wiki/Fully_qualified_domain_name
http://KB.IU.edu/data/AIUV.html
your turns to me such as CentOS and Oracle Linux.
Or take a look at the site of intrest:
http://www.Novell.com/documentation/SUSE91/SUSELinux-adminguide/HTML/ch14s03.html
127.0.0.1 localhost
192.168.85.133 OpenSuse. ??? OpenSuse
2.
To connect:
sqlplus sys /
as sysdba or
sqlplus system /.
Note: the password is case sensitive!
or disable this as SYSDBA (sqlplus sys /
as sysdba): ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON IS FALSE SCOPE = BOTH;.
3.
Set the password:
ALTER DEFAULT PROFILE LIMIT PASSWORD_LIFE_TIME UNLIMITED;
and restart
stop immediately;
start-up;
4.
I created a /ect/profile.local file with:
. /U01/app/Oracle/product/11.2.0/XE/bin/oracle_env.sh
Thus, every time you start, it will set the environment.
It's my Profile.local:
. /U01/app/Oracle/product/11.2.0/XE/bin/oracle_env.sh
ORACLE_HOME=/U01/app/Oracle/product/11.2.0/XE
ORACLE_OWNER = oracle
ORACLE_SID = XE
LSNR = $ORACLE_HOME/bin/lsnrctl
SQLPLUS = $ORACLE_HOME/bin/sqlplus
Export ORACLE_HOME
export ORACLE_SID
export ORACLE_BASE = / u01/app/oracle
export PATH = $ORACLE_HOME/bin: $PATH
NLS_LANG='$ORACLE_HOME/bin/NLS_LANG.sh'
ORACLE_ADMIN = / u01/app/oracle/admin / $ORACLE_SID
export ORACLE_ADMIN
ORACLE_FLASH = / u01/app/oracle/fast_recovery_area / $ORACLE_SID
export ORACLE_FLASH
ORACLE_ALERT = / u01/app/oracle/diag/rdbms/xe/XE/trace
export ORACLE_ALERT
ORACLE_DATA_PUMP_DIR = / u01/app/oracle/admin/XE/dpdump
export ORACLE_DATA_PUMP_DIR
DIAGNOSTIC_DEST = $ORACLE_HOME/log
export DIAGNOSTIC_DEST
TNS_ADMIN = $ORACLE_HOME/network/admin
Export TNS_ADMIN
5.
Recreate the DBSNMP user in the database as SYSDBA (sqlplus sys /
as sysdba): @/u01/app/oracle/product/11.2.0/xe/rdbms/admin/catnsnmp.sql
@/u01/app/oracle/product/11.2.0/xe/rdbms/admin/catsnmp.sql
Best regards.
-
View the non-visible objects in SQL Developer
Hello, I have created a few display objects in SQL Developer, and he succeeded since I got the message 'See V_REPORT.' created
However, I can't see it in the tree view on the left. It is completely empty. In trying to create the view once again, I get:
Error report-
SQL error: ORA-00955: name is already used by an existing object
00955 00000 - "the name is already used by an existing object.
* Cause:
* Action:
Which means that there are, but I don't see it even though I * just * created? This problem is only with the objects in view. All tables have been created without any problem.
It's my user privileges when I created the view object:
SQL > select * from session_privs;
PRIVILEGE
----------------------------------------
CREATE SESSION
ALTER SESSION STATEMENT
RESTRICTED SESSION
UNLIMITED TABLESPACE
CREATE TABLE
CREATE THE CLUSTER
CREATE SYNONYM
CREATE VIEW
CREATE SEQUENCES
CREATE THE DATABASE LINK
CREATE PROCEDURE
CREATE THE TRIGGER
CREATE THE TYPE
OPERATOR TO CREATE
CREATE INDEXTYPE
15 selected lines.
Anyone has an idea why I can't see my picture objects?
I thought about it. Lay be related (and causing) to another problem I had in another post:
-
JDeveloper do not establish association for HR schema
Hi, I just started learning JDeveloper and Oracle and I'm trying to follow this tutorial:
http://docs.Oracle.com/CD/E37547_01/tutorials/tut_rich_app/tut_rich_app.html
I got to step 19, and everything was working fine until I tried to run the AppModule. I get not all associations (for example. I do not have EmpDeptFkLink1 )
All I have is
AppModule
-DepartmentsView1
-EmployeesView1
-JobsView1
In my view, that ADF should automatically create associations for me based on the foreign keys of the tables, I checked to work properly.
I looked at this thread https://community.oracle.com/thread/2411302
but I don't think it applies to me I chose the HR schema when you move through the wizard.
Can anyone suggest what the problem? I really want to learn this.
Thanks for your reply. I understand that you wanted to say but as I am a total beginner even what is hard for me (tried and did not turn to the right).
After a day scouring the Internet I thought about it so I'll post it here for others (and I'm surprised that nobody publishes this problem, happens by default when you install oracle 12 c!).
Basically, your PDB is RESTRICTED the first time install you it. Trying to grant the user SESSION is RESTRICTED for some reason any does not have full access. Tables appear, but do not have points of view.
To verify if your PDB (remember not CBD) is restricted or not (and make sure that you are logged on as user SYS):
SQL > show files PDB;
CON_ID CON_NAME RESTRICTED OPENING MODE
---------- ------------------------------ ---------- ----------
2 SEEDS OF $ PDB READ ONLY NO.
3 PDBTVTS READ WRITE YES
As you can see, mine was. We could think about rating is a simple command that forums will tell you:
SQL > DISABLE THE ALTER SESSION SYSTEM RESTRICTED;
DISABLE RESTRICTED SESSION ALTER SYSTEM
*
ERROR on line 1:
ORA-65144: ALTER SYSTEM DISABLE RESTRICTED SESSION is not allowed
Took me hours before I realized there's no point to find a way to get this command works. Then I saw that you can start an instance using the RESTRICTED, then why not start up * without * this mode.
To put it simply, stop the instance and start it again.
SQL > shutdown immediate
Connectable to closed database.
(don't care which change the order now while the instance is closed.) I tried, still did not haha)
SQL > startup
Connectable to open database.
SQL > show PDB files
CON_ID CON_NAME RESTRICTED OPENING MODE
---------- ------------------------------ ---------- ----------
2 SEEDS OF $ PDB READ ONLY NO.
PDBTVTS READING ENTRY NO. 3
And now it works! My God, so difficult just start learning with a tutorial. Basically the tutorial currently works perfectly. Auto-created associations.
-
Installation diagram HR in Oracle Database 12 c
Hi, for the life of me I can not the HR schema installed.
With OEL6 and Oracle Database Linux 12.1 c
With the help of the wizard and advanced configuration, I chose to include sample patterns. Everything installed OK. However, none have been installed.
I then downloaded the examples file, unzipped, installed. All right.
Tried to follow: http://docs.oracle.com/cd/E16655_01/server.121/e15979/installation.htm
but also:
But in vain. I still get the same error:
SQL > @?/demo/schema/human_resources/hr_main.sql
Specify the password for HR as a parameter 1:
Enter the value 1: *.
Specify default tablespeace for HR as parameter 2:
Enter the value 2: users
specify the temporary tablespace for HR as parameter 3:
Enter the value 3: temp
Specify the password for SYS as parameter 4:
Enter the value of 4: *.
Specify the path journal as a parameter 5:
Enter the value of 5: @?/demo/schema/human_resources/hr_main.sql
SP2-0606: cannot create the file 'tvtsdb/u01/app/oracle/product/12.0.1/db_1/demo/schema/human_resources/hr_main.sqlhr_main.log' SPOOL
DROP USER CASCADE hr
*
ERROR on line 1:
ORA-01918: user 'HR' does not exist
CREATE USER IDENTIFIED HR BY *.
*
ERROR on line 1:
ORA-65096: of invalid common name of the user or role
ALTER default TABLESPACE users USER HR
*
ERROR on line 1:
ORA-01918: user 'HR' does not exist
TEMPORARY ALTER TABLESPACE temp USER hr
*
ERROR on line 1:
ORA-01918: user 'HR' does not exist
GIVING CREATE SESSION, CREATE VIEW, ALTER SESSION, CREATE the HR SEQUENCE
*
ERROR on line 1:
ORA-01917: there is no user or role 'HR'
GRANT CREATE SYNONYM, CREATE DATABASE LINK, RESOURCE, UNLIMITED TABLESPACE to HR
*
ERROR on line 1:
ORA-01917: there is no user or role 'HR'
ERROR:
ORA-12154: TNS: could not resolve the connect identifier specified
WARNING: You are more connected to ORACLE.
SP2-0640: not connected
ERROR:
ORA-12154: TNS: could not resolve the connect identifier specified
SP2-0640: not connected
SP2-0640: not connected
Creating a table of AREAS...
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
Creating a table of COUNTRIES...
SP2-0640: not connected
SP2-0640: not connected
Creating a table of LOCATIONS...
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
Creating the DEPARTMENTS table...
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
Creating a table JOBS...
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
Creating an EMPLOYEES table...
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
Create a table JOB_HISTORY...
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
Creating an EMP_DETAILS_VIEW view...
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
Populating the REGION table...
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
Fill table DESS...
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
Fill table of LOCATIONS...
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
Filling of the DEPARTMENTS table...
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
JOBS table populating...
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
Fill the EMPLOYEES table...
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
Fill table JOB_HISTORY...
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0640: not connected
SP2-0641: "EXECUTE" requires the connection to the server
queue is not currently
Can someone tell me please in the right direction?
Took forever (it's really the first time I use Oracle, no knowledge of database), but I finally got it to work, so I'll mention it right here for others to take advantage if all goes well. As I am new, some of these steps might not even be necessary, I'm not sure
Turns, even if I have included diagrams of the sample in the installation, the only installed pattern was the Scott schema. Unfortunately, that was not the HR schema.
You will need to download the examples of schema file and install it.
Then follow step 1 in the following post:
https://community.Oracle.com/message/11234394#11234394
Who said you have to understand an Earphone for your PDB (not the PEH).
So just add another entry for your PDB if you do not already have one in /u01/app/oracle/product/12.1.0/dbhome_1/network/admin/tnsnames.ora #note: directory names different. Mine was too
Important part is the (SERVICE_NAME = pdborcl) or what is called your PDB.
Stop and start the listener:
lsnrctl stop $
lsnrctl start $
Follow step 2 in the same post above to change the script of human resources which should be /u01/app/oracle/product/12.1.0/dbhome_1/demo/schema/human_resources/hr_main.sql
Or, just manually change the following lines in "BOLD". In the following example I changed it to my PDB called pdbtvts:
REM =======================================================
Grants of REM of the sys schema
REM =======================================================
CONNECT sys/&pass_sys@pdbtvts AS SYSDBA;
REM =======================================================
REM create schema hr objects
REM =======================================================
CONNECT hr/&pass@pdbtvts
Then, it is important that YOU do activate HR user having limited SESSION, otherwise you won't be able to connect. This happened to me.
Thus, under where the user hr has permission (over these lines, us has just edit), add the line in bold below:
GIVING CREATE SESSION, CREATE VIEW, ALTER SESSION, CREATE the SEQUENCE at the time;
GRANT CREATE SYNONYM, CREATE DATABASE LINK, RESOURCE, UNLIMITED TABLESPACE to the hour;
GRANT RESTRICTED SESSION on time;
Now, you need to connect to your PDB. Connect as sysdba as usual, which by default connects you to your PIC.
$ sqlplus / as sysdba
You can see that you are connected to your PIC if you issue 'show con_name '.
SQL > show con_name
CON_NAME
------------------------------
CBD$ ROOT
Connect to your PDB by using the following command "connect sys/XXXXX@pdbtvts as sysdba" where XXXXX is your SYS password
You must be connected to your PDB now.
SQL > show con_name
CON_NAME
------------------------------
PDBTVTS
Now, run the script:
SQL > @?/demo/schema/human_resources/hr_main.sql
You will be guests 5 things
1 hr user password - enter a password
2. name of the default tablespace - type "users."
3. temporary with name - type "temp".
4 SYS password - type your real password SYS
5. connect directory - type in "
$ORACLE_HOME
/demo/schema/log/
"If all goes well, you will get:
PL/SQL procedure successfully completed.
Make sure you have things:
SQL > select * from hr.employees;
Really hope it works for you as it did for me. Here everything was simple for beginners luck.
-
Error during the creation of EM
Please advice I 10.2.0.4 database installed on windows 2003 64 bit, so when I try Create Enterprise Manager using create emca - deconfig dbcontrol drop and emca rest db - config dbcontrol db-rest
I confronted below error
CONFIG: ORA-04042: procedure, function, package, or package body does not exist
ORA-06512: at line 11 leveloracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-04042: procedure, function, package, or package body does not exist
ORA-06512: at line 11 levelat oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1474)
at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeScript(SQLEngine.java:848)
at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:267)
at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:308)
at oracle.sysman.emcp.EMReposConfig.createRepository(EMReposConfig.java:422)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:192)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:134)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:171)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:486)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1142)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:470)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:419)
14:27:18 oracle.sysman.emcp.EMReposConfig rely on July 8, 2013
SEVERE: Error creating the repository
14:27:18 oracle.sysman.emcp.EMReposConfig rely on July 8, 2013
NEWS: Check the log to c:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\UMTDB2\emca_repos_create_ file < date > .log for more details.
July 8, 2013 14:27:18 oracle.sysman.emcp.EMConfig perform
SEVERE: Error creating the repository
See the file journal at c:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\UMTDB2\emca_2013-07-08_02-26-40-PM.log for more details.
July 8, 2013 14:27:18 oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: error creating the repository
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:204)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:134)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:171)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:486)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1142)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:470)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:419)1. connect to the repository database using sqlplus as the user sys
2. create the package dbmspool specification:
SQL > @$ORACLE_HOME/rdbms/admin/dbmspool.sql
Package created.
3. create the package dbmspool body:
SQL > @$ORACLE_HOME/rdbms/admin/prvtpool.plbCreated view.
Package body created.
4 the privilege of running on the package:
SQL > grant execute on INVALIDHTOMEH to sysman;Grant succeeded.
SQL > grant execute on INVALIDHTOMEH to dba;
Grant succeeded.
5 open a SQLPLUS session as user SYS or SYSTEM and delete the objects of management and account sysman:
a. change the disable restricted session system;
commit;
b. immediate stop
starting c. restrict
d. drop waterfall of sysman user;
role of drop of e. MGMT_USER;
Cascade MGMT_VIEW f. drop user;
g. MGMT_TARGET_BLACKOUTS drop public synonym;
h. SETEMVIEWUSERCONTEXT drop public synonym;
i. change the disable restricted session system;
6. at a command prompt, run emca - x sid to delete the existing configuration files.7 run emca to create the repository and the control of the database application.
/ bin/emca
Maybe you are looking for
-
HP Pavilion 15-ak101nq Gaming: wifi card white list
I want to know if my hp Pavilion has a white list the card wifi and I have shearched all on internet but I did not found any information about this then I would be happy if anyone knows if my laptop has one, or if I could install a?
-
How to solve error 0 x 80070424 Windows update? Attach it to the failure.
Automatic Updates does not light and precise manual consultation site are not accessible - error 0 x 80070424.
-
A way to update to lollipop without USB cable? Xperia Ultra Z
Hello! Please help me find a way to update without USB cable (my USB does not work, I charge the unit with the magnetic port).
-
BlackBerry 10 https 3RSH_A "unknown network error.
I have a service provider (www.reflexion.net) which provides filtering for e-mail clients and their portal site services does not work on BB10.2.x or 10.3.x. : / / dot dot is the URL (of course, you will need to type that in as I suspect that the for
-
Is it possible to invoke the pure qml camera card? I saw how in c ++, but prefer to keep in qml. Seems not work although For reference, see https://developer.BlackBerry.com/Cascades/documentation/device_platform/invocation/camera.html Invocation { id