GRANT SELECT ON SYS.DBA_PENDING_TRANSACTIONS TO SYSTEM WITH GRANT OPTION;
GRANT SELECT ON SYS.PENDING_TRANS$ TO SYSTEM WITH GRANT OPTION;
GRANT SELECT ON SYS.DBA_2PC_PENDING TO SYSTEM WITH GRANT OPTION;
GRANT EXECUTE ON SYS.DBMS_SYSTEM TO SYSTEM WITH GRANT OPTION;
on system, it gives me these insuffient privileges...
let me the know the commands to provide grant to execute select statement
GRANT SELECT ON SYS.DBA_PENDING_TRANSACTIONS TO SYSTEM WITH GRANT OPTION *ERROR at line 1:ORA-01031: insufficient privilegesGRANT SELECT ON SYS.PENDING_TRANS$ TO SYSTEM WITH GRANT OPTION *ERROR at line 1:ORA-01031: insufficient privilegesGRANT SELECT ON SYS.DBA_2PC_PENDING TO SYSTEM WITH GRANT OPTION *ERROR at line 1:ORA-01031: insufficient privilegesGRANT EXECUTE ON SYS.DBMS_SYSTEM TO SYSTEM WITH GRANT OPTION *ERROR at line 1:ORA-00942: table or view does not exist
when i was try to connect with
SQL> conn sys/manager42@localdev as sysdba
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
for the sequence i logon to cns but it gives the same error
slightwv (䄆 Netminder)
The ORA-12154 is likely due to the entry localdev missing from the tnsnames.ora file.
I suggest you log into the database server and connect 'as sysdba' locally:
sqlplus / as sysdba
>>CREATE SEQUENCE CNS.CUTION_SEQ START
Personally I don't like creating objects in a different schema than the one I am logged in as. If can cause problems the one time you forget to add the schema name.
To create these sequences I suggest logging into the database as the CNS user.