Problem with new user creation in Oracle 10g
I have created a new user and assigned it the required privileges as shown below:
GRANTEE GRANTED_ROLE ADM DEF
SACHIN1 CONNECT NO YES
SACHIN1 RESOURCE NO YES
SACHIN1 SELECT_CATALOG_ROLE NO YES
I am able to connect to database using this user username/password but when I am trying to fire any query like one below or to access any dictionary views it shows me the error message:
SQL> select * from dept;
select * from dept
ERROR at line 1:
ORA-00942: table or view does not exist
What is that i am missing which is not set right for this user....Let me know
user8531525 wrote:
DEPT table exists as I am able to access when I login using default name SCOTT.
If its not in my schema how can i include that so that i have access to it.You can use dynamic SQL to generate a script that should work:
SELECT 'grant select on '||OWNER||'.'||TABLE_NAME||' to SACHIN1;' as script
FROM dba_tables
WHERE owner='SCOTT';
This example generates the following:
grant select on SCOTT.DEPT to SACHIN1;
grant select on SCOTT.EMP to SACHIN1;
grant select on SCOTT.BONUS to SACHIN1;
grant select on SCOTT.SALGRADE to SACHIN1;
Eg:
SQL> conn sys/oracle as sysdba;
Connected.
SQL> grant select on scott.a to rajesh;
Grant succeeded.
SQL> conn rajesh/rajesh;
Connected.
SQL> select * from scott.a;
ID
123
123
123
am able to connect to database using this user username/password but when I am trying to fire any query like one below or to access any dictionary views it shows me the error message:try
SQL> select name from v$database;
NAME
REV1
SQL> select file_name from dba_data_files;
FILE_NAME
/u01/app/oracle/oradata/rev1/users01.dbf
/u01/app/oracle/oradata/rev1/sysaux01.dbf
/u01/app/oracle/oradata/rev1/undotbs01.dbf
/u01/app/oracle/oradata/rev1/system01.dbf
Edited by: rajeysh on Sep 23, 2010 1:39 AM
Similar Messages
-
Issues with user creation in Oracle 10g
ear All,
After logon to database with sysdba user i created one user by following query:
CREATE USER BI_USER
IDENTIFIED BY VALUES '0CE8A6E883EE4E19'
DEFAULT TABLESPACE BI_USER
TEMPORARY TABLESPACE TEMP1
PROFILE DEFAULT
ACCOUNT UNLOCK;
After creating this i have given following privledges to it:
GRANT RESOURCE TO BI_USER;
GRANT CONNECT TO BI_USER;
GRANT SCHEDULER_ADMIN TO BI_USER;
GRANT DBA TO BI_USER;
GRANT SELECT_CATALOG_ROLE TO BI_USER;
GRANT GLOBAL QUERY REWRITE TO BI_USER;
GRANT ANALYZE ANY TO BI_USER;
GRANT EXECUTE ANY PROCEDURE TO BI_USER;
GRANT CREATE SEQUENCE TO BI_USER;
GRANT CREATE SYNONYM TO BI_USER;
GRANT EXECUTE ANY PROGRAM TO BI_USER;
GRANT SELECT ANY DICTIONARY TO BI_USER;
GRANT DROP ANY VIEW TO BI_USER;
GRANT CREATE DIMENSION TO BI_USER;
GRANT DROP ANY TYPE TO BI_USER;
GRANT CREATE ANY DIRECTORY TO BI_USER;
GRANT ALTER ANY MATERIALIZED VIEW TO BI_USER;
GRANT CREATE MATERIALIZED VIEW TO BI_USER;
GRANT UNLIMITED TABLESPACE TO BI_USER;
BEGIN
SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
PRIVILEGE => SYS.DBMS_RULE_ADM.EXECUTE_ANY_RULE,
GRANTEE => 'BI_USER',
GRANT_OPTION => FALSE);
END;
GRANT EXECUTE ANY TYPE TO BI_USER;
GRANT CREATE ANY MATERIALIZED VIEW TO BI_USER;
GRANT CREATE TRIGGER TO BI_USER;
GRANT CREATE ANY TABLE TO BI_USER;
GRANT CREATE TABLE TO BI_USER;
BEGIN
SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
PRIVILEGE => SYS.DBMS_RULE_ADM.EXECUTE_ANY_RULE_SET,
GRANTEE => 'BI_USER',
GRANT_OPTION => FALSE);
END;
GRANT CREATE TYPE TO BI_USER;
GRANT DROP ANY INDEX TO BI_USER;
GRANT SELECT ANY TABLE TO BI_USER;
GRANT CREATE JOB TO BI_USER;
GRANT QUERY REWRITE TO BI_USER;
GRANT CREATE VIEW TO BI_USER;
GRANT CREATE SESSION TO BI_USER;
GRANT EXECUTE ANY CLASS TO BI_USER;
BEGIN
SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
PRIVILEGE => SYS.DBMS_RULE_ADM.EXECUTE_ANY_EVALUATION_CONTEXT,
GRANTEE => 'BI_USER',
GRANT_OPTION => FALSE);
END;
GRANT CREATE INDEXTYPE TO BI_USER;
GRANT CREATE DATABASE LINK TO BI_USER;
GRANT ALTER SESSION TO BI_USER;
GRANT DROP ANY DIRECTORY TO BI_USER;
GRANT CREATE PROCEDURE TO BI_USER;
GRANT DROP ANY SYNONYM TO BI_USER;
GRANT DROP ANY TABLE TO BI_USER;
Now following are the issues i am facing:
1). After all this when i logon to this user through toad it is successful but through SQL it says invalid username and password
2). Whenever i create a table it is created in SYS schema not in the user schema for creating it in user schema i have to right username.tablename also in select statement.
Can any body help me in this.2). Whenever i create a table it is created in SYS schema not in the user schema for creating it in user schema i have to right username.tablename also in select statement.
<code>
sqlplus scott/tiger
Connected.
SQL> desc t
Name Null? Type
TESTCOL VARCHAR2(10)
SQL> select * from t;
TESTCOL
1
2
3 new
SQL> conn / as sysdba
Connected.
SQL> sho user
USER is "SYS"
SQL> select * from scott.t
2 ;
TESTCOL
1
2
3 new
SQL> create table scott.t_copy as select * from scott.t;
Table created.
SQL> conn scott/tiger
Connected.
SQL> select * from t_copy;
TESTCOL
1
2
3 new
<code>
1). After all this when i logon to this user through toad it is successful
but through SQL it says invalid username and password
<code>
$ echo $ORACLE_SID
orcl
$ tnsping orcl
TNS Ping Utility for Linux: Version 10.2.0.2.0 - Production on 27-AUG-2009 14:38:34
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
/home/oracle/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
OK
$ sqlplus scott/tiger
SQL*Plus: Release 10.2.0.2.0 - Production on Thu Aug 27 14:38:42 2009
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> sho user
USER is "SCOTT"
SQL> select * from t_copy;
TESTCOL
1
2
3 new
<code>
please tell the syntax how you connect through sqlplus -
Problem with type 4 driver using oracle 10g
HI,
I am unable to establish a type 4 connection with oracle 10g.
Specs:
Driver used: OracleDriver that comes with the ojdbc14.jar along with oracle 10g
JDK used: Tried using both j2sdk1.4.2 and using JDK 5.0
JRE: Again, JRE that was shipped with j2sdk 1.4.2 and JRE 5.0
OS: Windows XP sp2
I am able to compile the following piece of code, so there is no classpath problem, etc.
When I try to run the program, the exception thrown is "No Suitable Driver"
There is no problem with the TNSListener, etc...even if all Oracle related services in 'services.msc' are Started/Stopped, the error remains.
I am, however, able to establish the connection using type1 driver.
Please Help!
import java.sql.*;
import java.io.*;
class TestConn
Connection connection;
Statement statement;
ResultSet resultset;
public void testConn() throws SQLException, ClassNotFoundException
DriverManager.registerDriver(new oracle.jdbc.driver.OracleStatement());
//DriverManager.registerDriver(new sun.jdbc.odbc.JdbcOdbcDriver());
connection = DriverManager.getConnection("oracle:jdbc:thin:@127.0.0.1:1521", "scott", "tiger");
//connection = DriverManager.getConnection("jdbc:odbc:dsn1", "scott", "tiger");
System.out.println("Connection Established");
statement = connection.createStatement();
resultset = statement.executeQuery("select ename from emp");
while(resultset.next())
System.out.println(resultset.getString(1));
class Test
public static void main(String args[]) throws SQLException, ClassNotFoundException
TestConn obj = new TestConn();
obj.testConn();
};The JDBC URL should include the database SID. For example, if the database SID is Orcl
connection = DriverManager.getConnection("oracle:jdbc:thin:@127.0.0.1:1521:Orcl", "scott", "tiger"); -
Problem with global temporary table in Oracle 10g
Hi All,
I face a peculiar problem in Oracle 10g with respect to Global temporary table.
Have Oracle 10g version in Production and 11g version in UAT.
Table_
create global temporary table TT_TEMPGPSMANUAL
Col_1 VARCHAR2(50),
Col_2 VARCHAR2(500),
Col_3 VARCHAR2(50),
Col_4 VARCHAR2(50),
Col_5 VARCHAR2(15),
Col_6 VARCHAR2(20),
Col_7 VARCHAR2(250),
Col_8 VARCHAR2(20),
Col_9 VARCHAR2(15),
Col_10 VARCHAR2(20),
Flag NUMBER,
Col_11 INTEGER,
Col_12 VARCHAR2(50)
on commit preserve rows;So this should preserve the rows inserted into this table until the session ends.
Have a webpage in front-end where in turn, it opens another page (session is carried through) and a few rows will be inserted to this table from the webpage (through a function) on submit and the current page will be closed.
From the parent page, if I open the sub-page data inserted in the temporary table are held and displayed (another function to fetch the values in the Global Temp table).
The Problem in Oracle 10g (Production) is, this is not happening properly. When I close and open the sub-page, not every time I get the data stored i.e if I close and open the page 10 times, atelast 4 times the data is missed in the page (I am not getting values from temp table) randomly.
But this does not happen in UAT (which has Oracle 11g installed) as I get the data in the webpage consistently. After passing UAT, when we rolled out to Prod, getting this issue which we are unable to get what could be the reason.
It is very hard to debug using GTT dynamically in prod. It takes time to get Oracle 11g installed in Prod.
Can anyone suggest?
Regards
Deep935195 wrote:
Also, I am opening the sub-page from the parent page (through a hyperlink). Then in this case, Would session will be changed from parent to subpage? (I am not aware exactly and have the impression that, as the second page is a child, I guess it would take the same session).I'm not sure what "sub-page" or "parent page" means to you. If you're just linking from one page to another, "parent" and "child" don't really make sense since page A links to page B and B links to A quite frequently.
Assuming that you have to log in to access the site, it is likely that the two pages share the same middle tier application session. It is unlikely that the middle tier would hold the database session from the first request open waiting to see if the user eventually requested the second page. It is theoretically possible that you could code your middle tier this way but it is extremely unlikely that you would want to do so for a variety of reasons. So, when you say "would [the] session ... be changed", it is likely that the application session would be the same for both calls but that the database session would be different.
Justin -
Problems with OPMN from Companion CD (Oracle 10g R2 x86_64 RHEL4)
I have installed Oracle 10g DB R2 64bit on RHEL4 x86_64 (AMD64) and HTTP-Server from Companion CD
All works.
But after running opmn appears problems:
1. The system message to syslog: "ip_conntrack: table full, dropping packet"
2. 'netstat -a' displays me thousands TCP-session on localhost to port 6100 in TIME_WAIT state
And network services on my host more died than alive...
If I increase ip_conntrack kernel parameter, then network state alive. But the problem with TCP-sessions is not resolved.
Any ideas?
Thanks, and sory for my english :-)
P.S. I have RHEL4 without update 1, but with new kernel and patched binutils. Update of RHEL can resolve this problem?Thank you!
The problem described in Metalink Doc-ID Note : 284602.1 is my case!
But this document applies to Oracle Net Services - Version: 10.1.0.2 to 10.1.0.3.
I have Version 10.2.0.1.0 and the problem apears again (with some symptoms are differ). -
We are using Hyperion Planning 11.1.1.
I am creating a new user using sharred services console and assigning a group to it which is already provisioned.
Now i am able log in using this new user to the workspace but when i open the application, it gives an error 'failed to sync with user provisioning'.
Even after refreshing the security filters in the database, i am unable to see the newly created user in the manage security filter list.
Kindly help.
Thanks in advance.Have you checked the logs are you getting any detailed error message?
Have you tried loggin Planning application directly via 8300 port?
Is it a migrated application?
Is the direct provisioning works?
Finally if nothing works, i usually give a try to below two utilities:
http://download.oracle.com/docs/cd/E12825_01/epm.111/hp_admin/ch03s12.html
Cheers..!!! -
Problem during new database setup in Oracle 10g
Hi All
I have been trying to create a database in Oracle 10g but due to certain reasons i havent been able to create the same. I have been getting the below given error while the creation, *"Cannot create the Directory d:\oracle\admin\ORACLE_SID\bdump"*. This is due to the fact that i created the same database before but deleted using the non sys account and again create a same database overwriting the files. Then again deleted the same database with sys account, but now when i am creating the database i am getting the above error.
Anbody knowing the solution for it, please help as i need to resolve this issue as soon as possible.
Regards
Deep Jyot SinghI can still see the directory d:\Oracle\admin\ in the directory....
Yeah reboot is the last option that I am going to do now.....will let you know of the status..... thanks..... -
Problem with two OC4J instances in Oracle 10g AS
hi all,
i am using windows XP(OS), Oracle 10g Application Server.
when i create two instances of OC4j other than home instance, say instance1 and instance2 and deploy two different applications in two instances then i get "page not found" error.
both the applications gets deployed successfully and different ports get selected for both applications internally.
the thing is when i stop one of the above instance, say instance1 the instance2 works fine and doesnt throw an error. the moment i start instance 1 both the instance gives the above stated error.
Can anyone help??
thanks in advance!!935195 wrote:
Also, I am opening the sub-page from the parent page (through a hyperlink). Then in this case, Would session will be changed from parent to subpage? (I am not aware exactly and have the impression that, as the second page is a child, I guess it would take the same session).I'm not sure what "sub-page" or "parent page" means to you. If you're just linking from one page to another, "parent" and "child" don't really make sense since page A links to page B and B links to A quite frequently.
Assuming that you have to log in to access the site, it is likely that the two pages share the same middle tier application session. It is unlikely that the middle tier would hold the database session from the first request open waiting to see if the user eventually requested the second page. It is theoretically possible that you could code your middle tier this way but it is extremely unlikely that you would want to do so for a variety of reasons. So, when you say "would [the] session ... be changed", it is likely that the application session would be the same for both calls but that the database session would be different.
Justin -
Problem with XML doc inserting into oracle 10g
Hi Guys, I have some knowledge in oracle 10g.
We are doing an application, when we were trying to insert XML document (I was trying to insert XML as un-structured way.) into oracle 10g as a datatype called XMLTYPE column.
My XML is having namespace attributes(Target namespaces) in that. So when i was trying to insert that into database , it is giving some error ,and not letting me to push that into database.
So Can any body please help me in this. My constraint is that I have to insert the document as un-structured way.
You help would be appriciated.
Vish
Message was edited by:
user567405
Message was edited by:
user567405
Message was edited by:
user567405
Message was edited by:
user567405
Message was edited by:
user567405, it is giving some error Hmmm, six attempts and you still didn't manage to tell us what the actuall error message and number was. Oracle has thousands of error messages. If you would like us to help you, make it easy for us to figure out what's going on. Don't make us guess.
Regards, APC -
Problem with xellerate user creation
I have HRMS as trusted source in my mapping i havent mapped password field and i am able to create users. But the problem is user is not able login as OIM has created some Junk password for user. Now, is there any way i can give static password?
i tried to create one entity adapter and mapped it to Users Object. It works fine during reconciliation. but the problem here is when administrators create account directly on OIM istead of the password that admin feeds in it creates the static password which i had attached for user object.
How can i overcome this problem. Any suggestions on how to proceed with the implementation?
ThanksiOhh..
You have removed that adapter. I told you the solution as u have some other dependency also. So for you the below solution will work:
When u run Trusted recon then userid becomes password by default.
If you are using some entity adapter then it will work for both cases.
If u see then I don't think it is possible to overcome this problem.
You can create some UDF, if user is created through admin console then ask your admin to put some value in this User Defined Field.
In your entity adapter handle this case. If UDF value == null then return dummypassword else you return the same password which you are getting from password field.
In your entity adapter Java class you'll be having one method with one parameter password
In this case you can overcome your problem. -
Problem opening reports with a user in the Oracle Directory.
I have already followed all the steps in the user's guide to run reports with a user in the Oracle Directory.
I accessed the enterprise security manager and created the mandatory xml publisher roles, besides I created another role. I added user A to the new role I created.
I accessed then the administrator tab in XML publisher. I went to roles and the role I created was there. When I tried to add a folder. I'm able to add the folder there. I click on apply and then when I enter in the security Settings again the folder is not there anymore.
I get the following error in the log:
[021207_103218621][][EXCEPTION] oracle.apps.xdo.servlet.resources.ResourceNotFoundException: /opt/oracle/infra2/j2ee/home/xmlpublisher
/Admin/Security/security.xml
When I access xml publisher with the user A, who belongs to the new role I'm working with, I'm not able to see any folder, nor anything else.
Do you have any ideas about what could be going wrong?
Thanks,
JoaquinCan you replay how? I have been facing this problem for nearly 3 months without any solution. Please help me.
Debarati -
Adobe aftereffects is not working on os x maverics all updates...... is dis soft. will work on the new os x yosemite.?? y apple is nt working on dis problem wen users are facing problems with new os x .....
I suggest you contact Adobe tech support or their Mac forums for assistance.
-
How we create new data base in oracle 10g express edition
hello every body.. i student of B tech n new user of oracle so please help me how we creat new data base in oracle 10g express edition
Hello, Oracle XE can not create more than one instance, the other editions yes, but like other editions XE allows you to create database schemas, schemas logically grouped objects like tables, views, indexes created by a user. By creating an Oracle user is associated with a schema of the same name.
Using SYS or system accounts for creating user accounts.
Syntax to create a user:
create user Your_user
IDENTIFIED BY password
default tablespace users;
grant connect, resources to your_user;
Edited by: rober584812 on Jun 25, 2010 9:03 PM -
I need to add a new node to RAC Oracle 10g R2
I need to add a new node to RAC Oracle 10g R2.
what is the best mode.
cloning or step by step?
SO: Solaris 64bit
Message was edited by:
ACSHi All,
I get the following error eventhough I have followed the instruction for Solaris R2. The instruction is enclosed. Please Advise! Thanks.
/app/cluvfy/runcluvfy.sh stage -post hwos -n nod1 -verbose
Result: User equivalence check failed for user "oracle".
ERROR:
User equivalence unavailable on all the nodes.
Verification cannot proceed.
Post-check for hardware and operating system setup was unsuccessful on all the nodes.
=========================
1. Log in as the oracle user.
2. If necessary, create the .sshdirectory in the oracle user’s home directory and
set the correct permissions on it:
$ mkdir ~/.ssh
$ chmod 700 ~/.ssh
3. Enter the following commands to generate an RSA key for version 2 of the SSH
protocol:
$ /usr/bin/ssh-keygen -t rsa
At the prompts:
¦ Accept the default location for the key file.
¦ Enter and confirm a pass phrase that is different from the oracle user’s
password.
This command writes the public key to the ~/.ssh/id_rsa.pub file and the
private key to the ~/.ssh/id_rsafile. Never distribute the private key to anyone.
4. Enter the following commands to generate a DSA key for version 2 of the SSH
protocol:
$ /usr/bin/ssh-keygen -t dsa
At the prompts:
¦ Accept the default location for the key file
Pre-Installation Tasks 2-11
Creating Required Operating System Groups and User
¦ Enter and confirm a pass phrase that is different from the oracle user’s
password
This command writes the public key to the ~/.ssh/id_dsa.pub file and the
private key to the ~/.ssh/id_dsa file. Never distribute the private key to
anyone.
Add keys to an authorized key file: Complete the following steps:
1. On the local node, determine if you have an authorized key file
(~/.ssh/authorized_keys). If the authorized key file already exists, then
proceed to step 2. Otherwise, enter the following commands:
$ touch ~/.ssh/authorized_keys
$ cd ~/.ssh
$ ls
You should see the id_dsa.pub and id_rsa.pubkeys that you have created.
2. Using SSH, copy the contents of the ~/.ssh/id_rsa.puband
~/.ssh/id_dsa.pubfiles to the file ~/.ssh/authorized_keys, and provide
the Oracle user password as prompted. This process is illustrated in the following
syntax example with a two-node cluster, with nodes node1 and node2, where the
Oracle user path is /home/oracle:
[oracle@node1 .ssh]$ ssh node1 cat /home/oracle/.ssh/id_rsa.pub >>
authorized_keys
oracle@node1’s password:
[oracle@node1 .ssh]$ ssh node1 cat /home/oracle/.ssh/id_dsa.pub >>
authorized_keys
oracle@node1 .ssh$ ssh node2 cat /home/oracle/.ssh/id_rsa.pub >>
authorized_keys
oracle@node2’s password:
[oracle@node1 .ssh$ ssh node2 cat /home/oracle/.ssh/id_dsa.pub
authorized_keysoracle@node2’s password:
Note: Repeat this process for each node in the cluster -
How to create new databse in existing oracle 10g
I installed the oracle 10g enterprise edition.. I would like to create a new database inside this oracle 10g so that i can create tables , views, stored proc and else.. in that new databse to support My .net application. I have a script which defines the databse schema. Please any one provide me the script that creates the new databse and users in that ?
Thank you!
Madhu..hi..
Use DBCA utility to create a new database.Type dbca on the cmd/terminal. A GUI tool will come, with which you can create a database.Also, while installing oracle 10g , there is a option of creating the database in the select configuration option window.Did you do Install Database Software only.
To create manually [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5004.htm#SQLRF01204]
HTH
Anand
Edited by: Anand... on Oct 15, 2008 8:54 PM
Maybe you are looking for
-
HT204394 How can I expunge my iCloud account which has become contaminated and open a new one?
How can I expunge my iCloud account which has become contaminated and open a new one?
-
Does anyone know if you have previously purchased an app for your Iphone or Ipod and you buy the same app for your MacBook will it recognize that you paid for it before like it does on the other devices, or will it charge you?
-
How to impert standard text?
hi, can anybody tell me how to import standard text?
-
Query regarding URL Encoding......in struts
Hi Friends, I am working in Struts. Now in some cases i have to send some data (like some id or falg value ) in URL as queryURL. now when the page calls at that time on the address bar i saw the whole URL. I wanted to encode that URL.so that no one c
-
Is the apple router really worth it?
it is time to upgrade my router. I have an older linksys 802llb. Originally I had my heart set on going all apple but at almost $200 vs about $50 for a non apple version I am wondering if it makes a difference and if the apple router is worth the mor