Not Able to Create database objects(Tables, etc) in Oracle 12c
Hello Sir,
Recently, I have installed oracle 12c in my PC. And I am able to connect with the ANONYMOUS user and connection name ORCL.
But I am not able to create any objects in database like tables creation, it's just showing the error message like- you don't have sufficient privileges.
Could you please help on this? How to start the work on oracle 12c database as I have worked on Oracle 11g with the SCOTT user and connection name ORCL.It was working fine. But SCOTT user is not present in 12c. Is there any other USER in 12c with the default tables like EMP table in 11g in the SCOTT USER schema?
Please suggest, what to do?
Thanks In Advance!!
Hi Nishant ,
Thanks for the reply.
I have done all the steps as you mentioned above. I am not able to create HR user. Please check the below errors and
please guide me on this.
SQL*Plus: Release 12.1.0.1.0 Production on Sat Oct 5 23:46:38 2013
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Enter user-name: anonymous
Enter password:
Last Successful login time: Sat Oct 05 2013 23:46:58 +05:30
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> connect sys as sysdba;
Enter password:
Connected.
SQL> CREATE USER hr IDENTIFIED BY Password#123
2 DEFAULT TABLESPACE hr_users
3 TEMPORARY TABLESPACE hr_temp
4 QUOTA 5000k ON hr_users
5 QUOTA unlimited ON hr_temp
6 PROFILE enduser ;
CREATE USER hr IDENTIFIED BY Password#123
ERROR at line 1:
ORA-65096: invalid common user or role name
SQL> SELECT NAME, CDB FROM V$DATABASE;
NAME CDB
ORCL YES
SQL> SHO CON_ID CON_NAME
CON_ID
1
CON_NAME
CDB$ROOT
SQL> SET LINE 150
SQL> SELECT NAME, OPEN_MODE, OPEN_TIME FROM V$PDBS;
NAME OPEN_MODE OPEN_TIME
PDB$SEED READ ONLY 04-OCT-13 08.57.50.461 PM
PDBORCL MOUNTED
SQL> CONN HR/HR@PDBORCL
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
SQL> SHO CON_ID CON_NAME
SP2-0640: Not connected
SP2-0641: "SHOW CONTAINER" requires connection to server
Thanks in advance!!
Regards,
Dharmendra Verma
Similar Messages
-
Re: Not Able to Create database objects(Tables, etc) in Oracle 12c
In addition to what Nishant said, the PDB databases are not opened by default.
You must open them manually or create a trigger to do it.Hi Nishant ,
Thanks for the reply.
I have done all the steps as you mentioned above. I am not able to create HR user. Please check the below errors and
please guide me on this.
SQL*Plus: Release 12.1.0.1.0 Production on Sat Oct 5 23:46:38 2013
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Enter user-name: anonymous
Enter password:
Last Successful login time: Sat Oct 05 2013 23:46:58 +05:30
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> connect sys as sysdba;
Enter password:
Connected.
SQL> CREATE USER hr IDENTIFIED BY Password#123
2 DEFAULT TABLESPACE hr_users
3 TEMPORARY TABLESPACE hr_temp
4 QUOTA 5000k ON hr_users
5 QUOTA unlimited ON hr_temp
6 PROFILE enduser ;
CREATE USER hr IDENTIFIED BY Password#123
ERROR at line 1:
ORA-65096: invalid common user or role name
SQL> SELECT NAME, CDB FROM V$DATABASE;
NAME CDB
ORCL YES
SQL> SHO CON_ID CON_NAME
CON_ID
1
CON_NAME
CDB$ROOT
SQL> SET LINE 150
SQL> SELECT NAME, OPEN_MODE, OPEN_TIME FROM V$PDBS;
NAME OPEN_MODE OPEN_TIME
PDB$SEED READ ONLY 04-OCT-13 08.57.50.461 PM
PDBORCL MOUNTED
SQL> CONN HR/HR@PDBORCL
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
SQL> SHO CON_ID CON_NAME
SP2-0640: Not connected
SP2-0641: "SHOW CONTAINER" requires connection to server
Thanks in advance!!
Regards,
Dharmendra Verma -
Not able to create database in Solaris 10 x86 Oracle 10.1.0.3
I have installed Oralce 10.1.0.3 in Solaris 10 X86 using the procedure given without creating the database.(Installing the binaries)
Hardware:Sun fire V20z.
When i tried creating Database using DBCA,it was throwing lots of error.
The errors are:
1) ORA-03113: end-of-file on communication channel
2) ORA-03114: not connected to oracle
3) ORA-27100: shared memory realm already exists.
Any help on creating a database in Solaris 10 x86 Oracle 10.1.0.3
Thanks in Advance.Hi.
Are You read documentation ?
[http://download.oracle.com/docs/cd/E19680-01/html/821-1255/babhabac.html#z40000471052274]
Guidelines for the /globaldevices File System
Oracle Solaris Cluster software offers two choices of locations to host the global-devices namespace:
A lofi device
A dedicated file system on one of the local disks
This section describes the guidelines for using a dedicated partition. This information does not apply if you instead host the global-devices namespace on a lofi.
The /globaldevices file system is usually located on your root disk. However, if you use different storage on which to locate the global-devices file system, such as a Logical Volume Manager volume, it must not be part of a Solaris Volume Manager shared disk set or part of a VxVM disk group other than a root disk group. This file system is later mounted as a UFS cluster file system. Name this file system /globaldevices, which is the default name that is recognized by the scinstall(1M) commandSo:
>I have mounted one (1) common 2gb LUN for both the nodes, so it is creating the problem...?
It source of problem.
Every node require have it's own separate slice for globaldevice.
Shared Lun can be mounted with option global for access from both nodes at same time, but it will be second step - configure data-services.
Regards. -
I am not able to create database manually.unexpected error incountered why?
I am not able to create database manually.unexpected error incountered why?
Same step is worked in another system
SQL> startup nomount
ORACLE instance started.
Total System Global Area 97589952 bytes
Fixed Size 453312 bytes
Variable Size 46137344 bytes
Database Buffers 50331648 bytes
Redo Buffers 667648 bytes
SQL> ed
Wrote file afiedt.buf
1 CREATE DATABASE icici
2 LOGFILE GROUP 1 ('F:\oracle\oradata\icici\logfile\redo01.log') SIZE 10M,
3 GROUP 2 ('F:\oracle\oradata\icici\logfile\redo02.log') SIZE 10M,
4 GROUP 3 ('F:\oracle\oradata\icici\logfile\redo03.log') SIZE 10M
5 MAXLOGFILES 5
6 MAXLOGMEMBERS 5
7 MAXLOGHISTORY 1
8 MAXDATAFILES 10
9 MAXINSTANCES 1
10 CHARACTER SET US7ASCII
11 NATIONAL CHARACTER SET AL16UTF16
12 DATAFILE 'F:\oracle\oradata\icici\datafile\system01.dbf' SIZE 100M REUSE
EXTENT MANAGEMENT LOCAL
13 DEFAULT TEMPORARY TABLESPACE tempts1 TEMPFILE 'F:\oracle\oradata\icici\d
atafile\temp01.dbf' SIZE 100M REUSE
14 UNDO TABLESPACE undotbs DATAFILE 'F:\oracle\oradata\icici\datafile\undot
bs01.dbf'SIZE 100M REUSE
15* AUTOEXTEND ON NEXT 5120K MAXSIZE 300M
SQL> /
CREATE DATABASE icici
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
SQL>Check the alert log. Paste the end of the file over here.
Yoann. -
** Not able to create Value Mapping Table in Integration Directory
Hi friends,
I am not able to create value mapping entries like below in ID.
Agency : Computer1 Agency : Computer2
Scheme: Country Scheme: CountryCode
Value for Computer1 Value for Computer2
Australia AU
India IN
Austria AU
Note that I have assigned the same country code 'AU' for the Countries 'Australia' & 'Austria'. But, when we assign 'AU' to 'Austria', the system asks question as below:
Value mapping already exists
Australia | AU
Austria | AU
Do you want to delete it from the existing group and assign it to the current group instead?
Continue Cancel
Though choose any of the option, I am not able to assign 'AU' to 'Austria'.
Friends, this is my requirement. How do we solve this ?
Kindly help me.
Kind Regards,
Jeg P.Hi Koen,
I tried this. Its working fine now. Thanks for giving guidance to me. Then, I have another doubt. Suppose if we create 2 sets of VM table, (First Receiver will act as 2nd one how do we achieve this). For Ex:
Set 1:
Source Agency: SYS1 Target Agency: SYS2
Source Scheme: CODE Scheme : DEPT
A HR
B Accts
C Finance
Set 2:
Source Agency: SYS2 Target Agency: SYS3
Source Scheme: DEPT Scheme : GRADE
HR Second
Accts First
Finance First
In this case, I followed the same logic which you said, but I am not able to create. I think the main point is GUID here. If you have any idea, kindly tell me.
Kind Regards,
Jegathees -
Not able to create an object using dbms_metadata.put function
Hi,
I have the metadata of an object in one of my database table as xml. I failed to recreate the object in the other schema using metadata api. I developed a stored function to do the above job. My function doesn't throw any error meanwhile it doesn't create the object.
My code snippet is
CREATE OR REPLACE PROCEDURE DDI.move_table(
table_name in VARCHAR2,
from_schema in VARCHAR2,
to_schema in VARCHAR2 )
AUTHID CURRENT_USER
IS
-- Define local variables.
h1 NUMBER; -- handle returned by OPEN
h2 NUMBER; -- handle returned by OPENW
th1 NUMBER; -- handle returned by ADD_TRANSFORM for MODIFY
th2 NUMBER; -- handle returned by ADD_TRANSFORM for DDL
xml XMLTYPE; -- XML document
errs sys.ku$_SubmitResults := sys.ku$_SubmitResults();
err sys.ku$_SubmitResult;
result BOOLEAN;
BEGIN
SELECT REPOS INTO xml from ddi.ddi_repos_t where obj_id = '1801';
-- Specify the object type using OPENW (instead of OPEN).
h2 := DBMS_METADATA.OPENW('TABLE');
-- First, add the MODIFY transform.
th1 := DBMS_METADATA.ADD_TRANSFORM(h2,'MODIFY');
-- Specify the desired modification: remap the schema name.
DBMS_METADATA.SET_REMAP_PARAM(th1,'REMAP_SCHEMA',from_schema,to_schema);
-- Now add the DDL transform so that the modified XML can be
-- transformed into creation DDL.
th2 := DBMS_METADATA.ADD_TRANSFORM(h2,'DDL');
-- Call PUT to re-create the object.
result := DBMS_METADATA.PUT(h2,xml,0,errs);
DBMS_METADATA.CLOSE(h2);
IF NOT result THEN
-- Process the error information.
FOR i IN errs.FIRST..errs.LAST LOOP
err := errs(i);
FOR j IN err.errorLines.FIRST..err.errorLines.LAST LOOP
dbms_output.put_line(err.errorLines(j).errorText);
END LOOP;
END LOOP;
END IF;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RAISE_APPLICATION_ERROR(-20510,'No xml is available as metadata');
END;
Could you tell me where is the probelm?
The schema where i created and execute my function having dba privilege also.
Regards,
Madhavi.Hi Madhavi,
The below code works for me:
SQL> conn sys as sysdba
Connected.
SQL> select count(*) from dba_objects where object_name = 'DEPT' and owner = 'OE';
COUNT(*)
0
SQL> CREATE OR REPLACE PROCEDURE move_table(
2 table_name in VARCHAR2,
3 from_schema in VARCHAR2,
4 to_schema in VARCHAR2 )
5 AUTHID CURRENT_USER
6 IS
7 -- Define local variables.
8 h1 NUMBER; -- handle returned by OPEN
9 h2 NUMBER; -- handle returned by OPENW
10 th1 NUMBER; -- handle returned by ADD_TRANSFORM for MODIFY
11 th2 NUMBER; -- handle returned by ADD_TRANSFORM for DDL
12 xml clob; -- XML document
13 errs sys.ku$_SubmitResults := sys.ku$_SubmitResults();
14 err sys.ku$_SubmitResult;
15 result BOOLEAN;
16 BEGIN
17
18 select DBMS_METADATA.GET_XML('TABLE','DEPT','SCOTT') into xml from dual;
19
20 -- Specify the object type using OPENW (instead of OPEN).
21 h2 := DBMS_METADATA.OPENW('TABLE');
22
23 -- First, add the MODIFY transform.
24 th1 := DBMS_METADATA.ADD_TRANSFORM(h2,'MODIFY');
25
26 -- Specify the desired modification: remap the schema name.
27 DBMS_METADATA.SET_REMAP_PARAM(th1,'REMAP_SCHEMA',from_schema,to_schema);
28
29 -- Now add the DDL transform so that the modified XML can be
30 -- transformed into creation DDL.
31 th2 := DBMS_METADATA.ADD_TRANSFORM(h2,'DDL');
32
33 -- Call PUT to re-create the object.
34 result := DBMS_METADATA.PUT(h2,xml,0,errs);
35
36 DBMS_METADATA.CLOSE(h2);
37 IF NOT result THEN
38
39 -- Process the error information.
40 FOR i IN errs.FIRST..errs.LAST LOOP
41 err := errs(i);
42 FOR j IN err.errorLines.FIRST..err.errorLines.LAST LOOP
43 dbms_output.put_line(err.errorLines(j).errorText);
44 END LOOP;
45 END LOOP;
46 END IF;
47 EXCEPTION
48 WHEN NO_DATA_FOUND THEN
49 RAISE_APPLICATION_ERROR(-20510,'No xml is available as metadata');
50 END;
51 /
Procedure created.
SQL> exec move_table('DEPT','SCOTT','OE');
PL/SQL procedure successfully completed.
SQL> select count(*) from dba_objects where object_name = 'DEPT' and owner = 'OE';
COUNT(*)
1
SQL> spool off;The xml returned by the get_xml function contains the tablespace name and storage parameters of the schema in which the object is present.
Check these parameters for both your schemas. -
Hi,
I am trying to create a SQL server database, but are not able to. I get this message: The operation is not supported for your subscription offer type.
I have to azure accounts and this is only happening in one of them.
I have created a subscription, but I can see that I have 1250 NOK in credit that is expiring in 29 days.
Regards
Christian
ChristianLLoydHi Christian,
The error you saw should only occur for a subscription used with a free trial offer type. Please use the below link to open a support ticket.
http://azure.microsoft.com/en-us/support/options/
You can check the following links for similar issues.
The operation is not supported for your subscription offer type
Could not submit the request to create database
DBNAME. The operation is not supported for your subscription offer type
Thanks,
Lydia Zhang
If you have any feedback on our support, please click
here.
Lydia Zhang
TechNet Community Support -
Not able to create database silently
Hi.
I have to install oracle 10g on AIX 6.1 silently so i have followed the the below steps:
1. downloaded patch 6613550 and run ./rootpre.sh of that patch as root user
2. created required oracle user and groups ( oracle and dba respectively)
3. installed 10.2.0.1 version by using the following command :
su - oracle -c "/Disk1/runInstaller -ignoreSysPrereqs -silent -responseFile /enterprise.rsp"
4. run oraInventory/orainstRoot.sh
5. run $ORACLE_HOME/root.sh
6. installed oracle 10.2.0.3 patchset using the command :
su - oracle -c "/p10_10203_AIX64-5L/Disk1/runInstaller -ignoreSysPrereqs -silent -force -debug \
FROM_LOCATION="/p10_10203_AIX64-5L/Disk1/stage/products.xml" \
ORACLE_HOME="given $ORACLE_HOME value" \
ORACLE_HOME_NAME="OraDb10g" \
TOPLEVEL_COMPONENT='{"oracle.patchset.db","10.2.0.3.0"}'"2>&1
7. then i am Configuring oracle to startup automatically
8. creating a database using the following command :
su - oracle -c "$ORACLE_HOME/bin/dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname tc -passwordDialog false -sysPassword sys_password -listeners LISTENER"
but when i execute this command it hangs .. doesn't show any error messages. nothing else..
could any one please help me with that.. where i went wrong..
Note : I have used the same command for creating a database for AIX 5.3 and i worked... but i didn't installed and patchset 6613550 and 10.2.0.3 as 10.2.0.1 is certified with AIX 5.3
thanks in advanceHi
oh.. sorry.. i am putting it there.Dont be sorry ;) i hope u got your answer soon,please close thread (change thread status to answered so it pretend to lose time of other forums user while they are searching open question which is not answered)
Regard
Helios -
Not able to create a Volume Group in the oracle VM server installation
Hi,
I am installing Oracle VM server. In the installtion ( Partition time ), i click on create custom layout and i want to create a / partition as a logical volumn under volume group. But there is no option to create a Volume group actually. So can anybody help how to create a volume group actually and how to create a logical volume under volume group.user10274248 wrote:
So can anybody help how to create a volume group actually and how to create a logical volume under volume group.LVM is not recommended in Dom0, which is why support for LVM has been removed from the installer. LVM is not cluster aware and does not support write barriers, both of which are important for a filesystem that is used for storing file-backed disk images. -
Not able to resize my objects in Nested iview
Dear all,
This is how I created my dashboard.
Model -> iview -> Layers(tabs) -> Each layer has various forms, queries and charts.
Now I have changed it to
Model -> iview -> Layers(tabs) -> Nested iview-> Each Nested iview has various forms, queries and charts.
Can you suggest the best approach in terms of flixibility and performance.
When I introduced a Nested Iview I amd not able to resize my objects ( table, chart, forms etc). I am not sure why. When I go into nested iview and go to Layout tab I see a blank page and can see nothing.
Could anyone help me please.
Also I would appreciate if anyone can suggest me the best practice for creating a dashboard.
Thanks,
KKHi,
Yes you are correct.
to make good Layout for Nestedview contents drilldown to the Nestedview and then go to its layout there you can make the Chages to layout.
Regards,
Govindu -
Not able to create new entry in RSADMIN Table
Hi All,
I am going thru the OSS note 1275837 (Note 1275837 - PrecServer: process based load distribution (ABAP part)), as it recommends
add the entry "BWPREC_USE_NEW_LOAD" with value "X" in table "RSADMIN"
When I check in SE11 and SE16 there is no option to create button for above entry in table RSADMIN.
Please advise for any help to create above entry.
Thanks
Ganesh Reddy.
Edited by: Ganesh Reddy on Jan 11, 2010 4:20 PM
I got access key from our basis team. But still not able to create new entry as mentioned in OSS note. Any further help....
Thanks
Ganesh Reddy.
Edited by: Ganesh Reddy on Jan 11, 2010 9:13 PMHi
Goto SM30 - Table Maintanance Generator and enter the table name and click on button maintain ,it will show the error message
"The maintenance dialog for RSADMIN is incomplete or not defined" because the table maintenance is not allowed manually.
First Option
When you double click the error message a performance assistant screen will open in that you can see Procedure
"Generate the required maintenance dialog" click on that and try to maintain the table using Access Key, as i dont have access key i have not tried this option.
Second Option
You can write an SE38 program with an insert statement.
TABLES rsadmin.
DATA: wa TYPE rsadmin.
wa-object = 'object name'.
wa-value = 'X'.
INSERT into rsadmin values wa.
Thanks -
Database objects Tables, Views, Indexes not expand in Connections navigator
In SQL Developer tool when I clicked on any database object: Tables, Views, Indexes, Packages, Procedures, Functions, and Triggers none of them expands in Connections navigator so I am not able to see all tables, Views, Indexes in this schema objects.
Please advise
Thanks a lot
VincentIf the user you're connecting with is not the owner of the objects, you can access them through the Other Users node.
Hope that helps,
K. -
I am not able to create a callable object of my web Dynpro application
Hi,
I have my Portal server installed with NW2004S and with other components as follows.
·WAS 7.0 SP9
·EP7.0 SP9
·CAF 7.0 SP9
·VC 7.0 SP9
But now my webdynpro application is not reflecting in web Dynpro Component(GP Interface) during the design time, when I am trying to create a callable object.
So please can you suggest what is the problem and how I will get it corrected.
Regards,
Paresh.Hi Aliaksei,
I had created a complete CAF application which was working fine. Then the server got crashed and i lost everything.So then i again installed the server and upgraded it to SP7.But than i was not able to see my web dynpro application while creating callable object. So i created another instance in the server at the base level(SP4) and i was able to create callable object.
There is no problem in the webdynpro application.I have added runtime library referece to my project : sap.com/cafeugp~api and also implemented the Interface IGPWebDynproCO in my component.
So i dont know where i am going wrong while i am upgrading the server.
Regards,
Paresh. -
Not Able to create ADF Table In the Multiple model enviorment
Hi All
I am not able to create ADF Table or ADF Read-only Table
I am having following thinks in my JWS Project
2, Model Project(Different different name)
2,faces-config.xml(Different different name)
1 web Project (View Controller)
and one Databinding.cpx file
i am using following version of jdeveloper to develop application
ADF Business Components 10.1.3.41.57
BPEL Designer 10.1.3.3.0 (Build 070615.0525)
Java(TM) Platform 1.5.0_06
Oracle IDE 10.1.3.41.57
Struts Modeler Version 10.1.3.41.57
UML Modelers Version 10.1.3.41.57
Versioning Support 10.1.3.41.57Are you dragging from the data control? what technologies did you use for the data controls?Ans:I am using data controll as ADF BC
Are the two faces-config.xml files in your web project?
Ans:Yes with one name with faces-config.xml and antoher with different name -
Not able to connect database while creating RPD
hi,
while creating New RPD i am not able to connect database its Throwing error like"The Connection has failed". even though i had given Data source name as TNS entry.
Thanks,
LokeshHi,
If you use OBIEE 11g, the tnsname.ora is located in this folder : {Oracle_BI1}\network\admin directory & {oracle_common}\network\admin directory (only the former is needed as that is the ORACLE_HOME).
Do you use OBIEE 11g and have you update the tnsname.ora in this folder ?
Hope it helps,
Benoit
Maybe you are looking for
-
ABC Analysis of Planned Consumption(Issue against Reservation).
Hi Experts, Is there any standard report is available for ABC Analysis of Planned Consumption(material issued against Reservation)? thx in advance...
-
Whenever I'm uploading a video to a site like YouTube, after a couple of minutes Mac OS X puts the computer to sleep as it seems that it is not aware that an upload is in progress. How do I get around this?
-
Why is the map in uae not working
hi In UAE we face problems with maps. we can select one place but cannot go their (direction not working). Another this is Passbook doesn't work in UAE
-
Generic Patchs for 11.2.0.4 WIN 2008
Hi Friends, As per SAP note 1949250 - Oracle 11.2.0: Patches / Patch collections for 11.2.0.4 below are the required Bundel and Generic patches. Oracle Database Patch Patch ID Patch Description PATCHBUNDLE11204P_10-20010784.ZIP 19651773 Windows 64-bi
-
Copy the value from one item into another
Hi, I have a page with 2 items on it: Field1 and Field2. When the user enters a value in Field1 and tabs out, I want to copy the value to Field2. I have changed the setField1 method in the VORowImpl to call setField2 passing in the same value. In the