Db upgrade: EBS Grant create procedure on CTXSYS privilege
Hi all
While the EBS R12 database upgrade, as in notes 1058763.1 of 11.1.0.7 to 11.2.0.4, I get error to step below according to:
-bash-3, $ 2 sqlplus apps/apps @wfaqupfix.sql APPLSYS APPS
SQL * more: version 10.1.0.5.0 - Production the Mon Aug 10 14:21:15 2015
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12541: TNS:no listener
-bash-3, $ 2 apps/apps sqlplus
SQL * more: version 10.1.0.5.0 - Production the Mon Aug 10 14:22:34 2015
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12541: TNS:no listener
I checked the vairable TNS_ADMIN component apps and found port 1522 in the tnsnames.ora file, while the real port of the database listener's 1521 and the database is already in place.
Any ideas?
Kind regards
Vinod
Looks like you started the earpiece of the database with the default values
What is the result of
grep dbport $CONTEXT_FILE
lsnrctl status
can you connect to the database in this way
Apps/Apps@hostname:1521/
You can change involves database to run on the port of 1522 or change to 1522 tnsnames file. To generate tnsentries to port, you must change the port value in the context file
Tags: Oracle Applications
Similar Questions
-
As sysdba, how to grant create table to a user for a particular tablespace?
I did the PRACTICE tablespace and user SEAN. How can I give SEAN the privilege to create a table in the practical tablespace?
CREATE TABLESPACE PRACTICE
DATA FILE
' F:\DBM\FALLB\DB2046\ORACLE\ADMIN\ORAC...
SIZE 20 M
DEFAULT STORAGE OF DICTIONARY OF MANAGEMENT MEASURE (1 M INITIAL FOLLOWING 1 M MAXEXTENTS 20 PCTINCREASE 0);
CREATE USER SEAN
IDENTIFIED BY SEAN
PRACTICE OF TABLESPACE DEFAULT;
GRANT CREATE SESSION TO SEAN;
-----------------------------------------------
-----------------------------------------------
SEAN GRANT SYSDBA;
+
Sean/[email protected] CONNECT as sysdba
Works, but what happens if I don't want SEAN have sysdba privileges?
-----------------------------------------------
-----------------------------------------------
Another question would be if I don't give SEAN sysdba privileges and then I connect like sean and then perform a
SELECT * FROM TAB;
to display the available tables, how can I do so that I can only see the paintings I do myself instead of all tables in the database?Hello
Connect as sys and grant after privs to SEAN, I added a few privileges as well.
Do not give any user other than SYS sysdba priv, unless you intend to use user SEAN as a user administrative addition to SYS.
GRANT RESOURCE TO SEAN; GRANT CONNECT TO SEAN; GRANT CREATE SESION TO SEAN; -- GRANT UNLIMITED TABLESPACE TO SEAN; GRANT CREATE VIEW TO SEAN; GRANT CREATE PROCEDURE TO SEAN ; GRANT CREATE TABLE TO SEAN -- 1 Tablespace Quota for SEAN ALTER USER SEAN QUOTA UNLIMITED ON PRACTICE;
Concerning
-
grant create any link to user1 database?
Hello. Thank you for helping.
Is there a way to do something like this:
grant create any link to user1 database?
I tried to create a link of database from a procedure, but has been an error: insufficient privileges.
Any suggestions greatly appreciated.SQL> @dblink.sql SQL> CREATE OR REPLACE PROCEDURE NEW_LINKS 2 AS 3 NEWSQL VARCHAR2(32000) := 'CREATE PUBLIC DATABASE LINK BCM_LINK USING '|| CHR(39) || 'BCM' || CHR(39); 4 BEGIN 5 DBMS_OUTPUT.ENABLE(10000); 6 DBMS_OUTPUT.PUT_LINE(NEWSQL); 7 EXECUTE IMMEDIATE NEWSQL; 8 END NEW_LINKS; 9 / Procedure created. SQL> exec new_links; CREATE PUBLIC DATABASE LINK BCM_LINK USING 'BCM' BEGIN new_links; END; * ERROR at line 1: ORA-01031: insufficient privileges ORA-06512: at "DBADMIN.NEW_LINKS", line 7 ORA-06512: at line 1 SQL> -- SQL> GRANT CREATE PUBLIC DATABASE LINK TO DBADMIN; Grant succeeded. SQL> -- SQL> exec new_links; CREATE PUBLIC DATABASE LINK BCM_LINK USING 'BCM' PL/SQL procedure successfully completed. SQL> -- SQL> REVOKE CREATE PUBLIC DATABASE LINK FROM DBADMIN; Revoke succeeded. SQL> GRANT DROP PUBLIC DATABASE LINK TO DBADMIN; Grant succeeded. SQL> DROP PUBLIC DATABASE LINK BCM_LINK; Database link dropped.
-
How to find recently created procedures in the current schema?
Hi all
in which oracle table I find recently created procedures with data timestemp as well?
Thank you.
Kind regards
Robert
Hi Robert,.
Watch dba_objects or all_/user_objects.
Something like that for the last day:
select * from dba_objects where LAST_DDL_TIME > sysdate -1 and OBJECT_TYPE in ('PROCEDURE','PACKAGE','PACKAGE BODY','FUNCTION') and owner = '
'; concerning
Kay
-
grant, create and drop objects on the diagram to a role/user
Generic question for Oracle RDBMS:
As far as I know, there is no way for the owner of a schema privileges such as create objects, or drop objects in this schema to a user or a role.
I know that a lot of people always asked if it is possible, and I hope Oracle will provide this capability, but as far as I know, it is not possible, even in 12.1.0.2.
Does anyone have ideas on this?
I considered to have developers to create programs to create tables, views, packages, etc. and then grant execute on them to the users/roles, but it would be a huge amount of work.
Did someone come up with an easier way to do this? Or know of a way that this can be done?
Obviously, I can not grant create any table, index, package, view, etc., or to delete any table, view, etc., and of course we grant the DBA role.
I thought that the 'become a user"was a solution, but it is apparently far from able to do such things.
In our case, apparently, we have users log in with account of the owner of the schema and create objects, modify objects, etc. (Change the objects is not a problem, because we can give everything on the object to someone.) The problem is that we need to prevent people to connect to shared group accounts (or as the owner of the schema record) to create objects, drop objects, etc.). We all have as their own user name and will not be able to create and delete objects in patterns of selection.
Why must everyone CREATE and DROP of objects within the framework or the processing of information on the day the day?
I feel a serious design flaw & conversion Orace DB.
-
Grant create session, grant no privilege to aquser->; ORA-01031?
Hello
How can it be possible that despite all the privileges a user always generates ORA-01031: insufficient privileges?
Grant create session, granted a privilege of aquser
Dequeue messages with java->
oracle.jms.AQjmsException: JMS-120: Homtningen Fron k÷n utf÷rdes inte
at oracle.jms.AQjmsError.throwEx(AQjmsError.java:315)
at oracle.jms.AQjmsConsumer.jdbcDequeue(AQjmsConsumer.java:1630)
at oracle.jms.AQjmsConsumer.receiveFromAQ(AQjmsConsumer.java:1037)
at oracle.jms.AQjmsConsumer.receiveFromAQ(AQjmsConsumer.java:962)
at oracle.jms.AQjmsConsumer.receiveFromAQ(AQjmsConsumer.java:940)
at oracle.jms.AQjmsConsumer.receive(AQjmsConsumer.java:792)
at AQSub.AQReceiver (AQSub.java:188)
at AQSub.eval (AQSub.java:130)
at com.tibco.im.wf.Job.step(Job.java:986)
at com.tibco.im.wf.Job.checkStep(Job.java:822)
to com.tibco.im.wf.NewJobDispatcher$ JobCourier.runx (NewJobDispatcher.java:240)
to com.tibco.im.wf.NewJobDispatcher$ JobCourier.run (NewJobDispatcher.java:207)
Caused by: java.sql.SQLException: ORA-01031: otillrocklig beh÷righet
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:74)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:131)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:204)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:406)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)
at oracle.jdbc.driver.T4Caqdq.receive(T4Caqdq.java:431)
at oracle.jdbc.driver.T4CConnection.doDequeue(T4CConnection.java:3369)
at oracle.jdbc.driver.PhysicalConnection.dequeue(PhysicalConnection.java:9142)
at oracle.jdbc.driver.PhysicalConnection.dequeue(PhysicalConnection.java:9189)
at oracle.jms.AQjmsConsumer.jdbcDequeue(AQjmsConsumer.java:1305)
... more than 10GRANT CREATE SESSION, aq_user_role to my_aq_user_role.
Well, have you seen this?
4.2.1.2 the user role
You should avoid granting AQ_USER_ROLE, because this role provides enough privileges to the queue or the print queue on the 8, 1-style queues or superiors.Since you have not provided no version information, it's a little hard to know if it is applicable to your case. However, this should be a case of applying logic/troubleshooting/debugging skills to determine what privileges are missing.
Kind regards
Mark
EDIT: I realize that you have explicitly granted the privileges ENQUEUE_ANY and DEQUEUE_ANY, but have you followed the other suggestions EXECUTE, for example right on DBMS_AQ?
Published by: Mark Williams on May 28, 2010 11:37
-
Hello
I am new to Oracle and the need to create the stored procedure to set the view, than what the user wants - procedure, that they need "to spend a bunch of settings", as of the day etc. I don't know does make sence for that in sp, set rather seen as you like, and probably that there is still possibility to pass all params in there without creating procedure. And it's just advice, not materialized.
I'm not "see an option to apply the settings in the menu 'New View' on my SQL_Developer." So MS will probably be the best solution?
My opinion:
Create view v1 in select * from tt1 where union date=@today
Select * from tt2 where date=@today union;
Maybe someone can share any sample sp how to create the procedure, I can not compile without error:
CREATE OR REPLACE PROCEDURE usp_v1 AS
BEGIN
Create view v1 in select * from tt1 where union date=@today
Select * from tt2 where date=@today union;
END usp_v1;
Error (4.3): PLS-00103: encountered the symbol "CREATE" when waiting for one of the following values: begin case declare exit for goto rise back loop mod null pragma select update while < ID > < one between double quote delimited identifiers of > < a variable binding > < < close current delete fetch locking open insert commit rollback savepoint SQLExecute fusion forall hose set
Also, what is the best book of the Oracle for beginner developer market? I couldn't find too much on www.
All TX
DRUN IMMEDIATELY CREATE VIEW...
-
Hello
in 10g,.
If I have:
then:GRANT CREATE ANY TABLE to user1;
1 - user1 can create a table in any schema and remove any table in any schema?
2-can we user1 create a table in any schema and drop any table from only its own schema?
Thank you.just give a try if you have a test database.
-
Question about GRANT CREATE TABLE permission
Hello
How can I give UserA to create tables to UserB/SchemaB. I understand that 'CREATE TABLE' will give permission to the user to create tables within its own schema and "CREATE ANY TABLE" will give permission to the user to create tables in a schema.
Y at - it a command to give the specific schema CREATE TABLE? Please advice... Thank you!Y at - it a command to give the specific schema CREATE TABLE? Please advice... Thank you!
No, but you can create your own solution
have SCHEMA_B create a procedure, MAKE_SCHEMA_B_TBL, which sends the command below
RUN IMMEDIATELY CREATE TABLE...
then do as below
GRANT EXECUTE ON MAKE_SCHEMA_B_TBL TO SCHEMA_A;
-
I have to grant create sequence?
I am a DBA and have created a new user applications for developers to work with. I have granted connect, resources, create session, create table and create synonym to that user.
Before it goes live I ran a few controls to see what objects the new user had created developing. He had created the tables and synonyms which is what I expected, but he also sequence objects created. I checked the privileges to see if the developers have added 'create the sequence' without knowing me, but they didn't.
One of the other privileges that got allows the user to create sequences or do I grant him implicitly when it goes live?
Thank youThe resource is a role that includes privilege system create cluster, indextype, operator, procedure, sequence, table, trigger, type. So, if you grant the role of resource, it will be able to create the sequence as well.
Kind regards.
-
Create procedure upsert (name of the existing table, incoming table name)
Is it possible to create a procedure that makes a merge (upsert) with only two parameters:
- Existing Table name - name of table that will have data merged into it.
- Incoming Table name - name of the table that has developed data day/news.
The method would be:
- Use primary keys on the "existing" table as the condition links
- Fact and update if exists and insert new
- no record
- no clues
- no removal clause
Oracle 11g
MERGE < tip > < table_name >
USING < table_view_or_query >
(< CONDITION >)
WHEN MATCHED THEN < update_clause >
DELETE < where_clause >
WHEN NOT MATCHED THEN < insert_clause >
[ERRORLOG < log_errors_clause > < reject limit < integer | unlimited >];
< table_name > - from input parameter
< table_view_or_query > -socket input parameter
< condition > - primary key links (how search a single/multiple primary keys and return the list?)
< update_clause > - update all columns (other than KP, how to get and use a dynamic list of columns)
< where_clause > - not used
< insert_clause > - insert new records for all columns (including the PK (s))
declare
p_source varchar2 (30): = "EMP_X";
p_target varchar2 (30): = "EMP_Y";
query varchar2 (32000);
function get_cols (p_table in varchar2) return varchar2 is
VARCHAR2 (32000) retval;
Start
Select the Group (order of column_id) listagg (column_name, ',')
in retval
of user_tab_cols
where table_name = p_table
Table_name group;
Return retval;
end;
function get_keys (p_table in varchar2) return varchar2 is
VARCHAR2 (4000) retval;
Start
Select listagg (cc.column_name, ',') in the Group (order by cc.position)
in retval
from user_constraints c,.
user_cons_columns cc
where cc.table_name = p_table
and c.constraint_type = 'P '.
and cc.table_name = c.table_name
and cc.constraint_name = c.constraint_name
C.table_name group;
Return retval;
end;
function merge (p_merge1 varchar2, p_merge2 varchar2, p_link varchar2) return varchar2 is
Merge1 varchar2 (32000): = p_merge1 | «, » ;
merge2 varchar2 (32000): = p_merge2 | «, » ;
VARCHAR2 (32000) retval;
Start
then merge1 is not null
loop
retval: = retval | » t.'|| substr (Merge1, 1, InStr (Merge1, ',') - 1) |'s =.' | substr (merge2, 1, InStr (merge2, ',') - 1);
Merge1: = substr (merge1, instr(merge1,',') + 1);
merge2: = substr (merge2, instr (merge2, ',') + 1);
If merge1 is not null then
retval: = retval | p_link;
end if;
end loop;
Return retval;
end;
Chopper (p_cols p_keys varchar2, varchar2) return varchar2 is
passes varchar2 (32000): = ', '. p_cols | «, » ;
keys varchar2 (32000): = ', '. p_keys | «, » ;
VARCHAR2 (32000) retval;
Start
While the keys! = «, »
loop
If instr (passes, substr (keys, 1, instr(keys,',',1,2))) = 1 then
cols: = substr (collars, instr(cols,',',1,2));
on the other
cols: = substr (passes, 1, instr (passes, substr (keys, 1, instr(keys,',',1,2))) | substr (collars, InStr (collars, ',', InStr (passes, substr (Keys, 1, InStr(Keys,',',1,2))), 2) + 1);)
end if;
keys: = substr (keys, instr(keys,',',1,2));
end loop;
return trim (both ',' collar);
end;
Start
query: = 'merge'. p_target |' t ' |' using (select ' | get_cols (p_source): ' from ' | p_source |') s '.
' on ('|) Merger (get_keys (p_target), get_keys (p_source), 'and') |') ' ||
"When matched then update set ' | '. Merger (Chopper (get_cols (p_target), get_keys (p_target)), Chopper (get_cols (p_source), get_keys (p_source)), ',').
«When not matched then insert ('|)» get_cols (p_target) |') values (s.'|) Replace (get_cols (p_source),', ', ', s') |') ';
dbms_output.put_line (Query);
end;
Fusion in EMP_Y t using (select EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO EMP_X) s on (t.EMPNO = s.EMPNO and t.ENAME = s.ENAME) when matched then update set t.JOB = s.JOB, t.MGR = s.MGR, t.HIREDATE = s.HIREDATE, t.SAL = s.SAL, t.COMM = s.COMM, t.DEPTNO = s.DEPTNO when not matched then insert (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO) values (s.EMPNO, s.ENAME, s.JOB, s.MGR, s.HIREDATE, s.SAL, s.COMM, s.DEPTNO)
Concerning
Etbin
-
Hello
I'm on 11 GR 2
and I'm trying to creata a procedure for droping partitions.
That's what I've done so far but I'm getting errors so I don't ' know where I was wrong.
I'm giving the last partition in the partitioned table.
and it ends withcreate or replace procedure drop_part as counter NUMBER; part_name VARCHAR (20); BEGIN SELECT partition_name INTO part_name FROM user_tab_partitions WHERE table_name = 'TABLE_A' AND partition_position = 1; SELECT COUNT (*) INTO counter FROM user_tab_partitions WHERE table_name = 'TABLE_A'; IF counter > 9 THEN dbms_output.put_line( execute immediate 'alter table TABLE A drop partition' || part_name|| ';'); end if; end;
can you suggest how I can fix this?SQL> sho errors procedure drop_part Errors for PROCEDURE DROP_PART: LINE/COL ERROR -------- ----------------------------------------------------------------- 19/15 PLS-00103: Encountered the symbol "IMMEDIATE" when expecting one of the following: . ( ) , * @ % & = - + < / > at in is mod remainder not rem => <an exponent (**)> <> or != or ~= >= <= <> and or like like2 like4 likec as between from using || multiset member submultiset The symbol "( was inserted before "IMMEDIATE" to continue. 19/81 PLS-00103: Encountered the symbol ";" when expecting one of the following: . ( ) , * % & = - + < / > at in is mod remainder not rem => LINE/COL ERROR -------- ----------------------------------------------------------------- <an exponent (**)> <> or != or ~= >= <= <> and or like like2 like4 likec as between from using || multiset member submultiset The symbol ")" was substituted for ";" to continue.
IF counter > 9 THEN dbms_output.put_line( 'execute immediate'|| 'alter table TABLE A drop partition' || part_name|| ';'); end if; end;
Should fix your error, which is as a result of GIS using dbms_output.put_line.
You should put your string in a variable and then only display the variable. It is much easier to find mistakes in this way.
When you say you are trying to delete the last partition, you hear the last remaining partition, or do you mean the last created partition.
If it is the last remaining partition, you cannot delete it. You must remove the table instead.
-
Upgrade EBS 12.1.1 to 12.1.2
Hello gurus
I want to upgrade my version of Oracle EBS 12.1.1 to 12.1.2 on Red Hat Linux 5.3 *(64 bit) *.
There are three patches are needed for the same thing:
I have ) R12. AD. B.Delta.2 Patch 8502056
ii) release 12.1.2 Patch 7303033
iii) consolidated online help 7303032 Patch
When I try to download the patch, it only shows the patch for Linux, x 86, there is no patch exists for 64bits.
My question is, can I use x 86 patch because there is no patch available for 64-bit?
Concerning
Mohamed AhmedYes - EBS is a 32-bit application. It can be installed on 64-bit hardware, but the patches will be available to 32 - bit
HTH
Srini -
Which granted CREATE a PUBLIC SYNONYM for user SCOTT?
version: 11.2.0.3
Operating system: Solaris 10
Auditing is enabled in our database.
Of DBA_SYS_PRIVS, we have confirmed that one of our DBA colleagues gave some risky privileges like CREATE PUBLIC SYNONYM, SELECT ANY TABLE... etc. to the user SCOTT.SQL> show parameter audit_trail NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ audit_trail string DB
We would like to find out 2 things
1. the SQL GRANT
2. the date and time on which the statetement GRANT was pulled
How can we find it?Y.Ramlet wrote:
version: 11.2.0.3
Operating system: Solaris 10Auditing is enabled in our database.
SQL> show parameter audit_trail NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ audit_trail string DB
Of DBA_SYS_PRIVS, we have confirmed that one of our DBA colleagues gave some risky privileges like CREATE PUBLIC SYNONYM, SELECT ANY TABLE... etc. to the user SCOTT.
We would like to find out 2 things
1. the SQL GRANTYou will have no SQL in the audit trail, because you have not configured the parameter correctly. You must audit_trail = db, extended to get the SQL code.
2. the date and time on which the statetement GRANT was pulled
You will have anything unless you have enabled auditing for the instruction given with
Check create public synonym;How can we find it?
You can't until you configure the audit in an appropriate manner.
-
Hello
I get a lot of errors when you create the procedure below.
alter procedure sp_compileinvalid as Begin Set lines 999; Spool run_invalid.sql select 'ALTER ' || OBJECT_TYPE || ' ' || '.' || OBJECT_NAME || ' COMPILE;' from user_objects where status = 'INVALID' ; spool off; @run_invalid.sql end
872435 wrote:
HelloI tried to handle the exception using the code below, but still he compiles a single object and ignores the rest if an error occurs in the first object.
create or replace procedure sp_compileinvalid as v_sql varchar2(500); Begin for rec in (select (case when OBJECT_TYPE = 'PACKAGE BODY' then 'ALTER PACKAGE '||user|| '.'||OBJECT_NAME||' COMPILE BODY' else 'ALTER '||OBJECT_TYPE||' '||user|| '.'||OBJECT_NAME||' COMPILE' end) str from user_objects where status = 'INVALID' ) loop v_sql := rec.str; execute immediate v_sql; end loop; EXCEPTION WHEN OTHERS THEN v_sql := null; end;
CREATE OR replace PROCEDURE Sp_compileinvalid AS v_sql VARCHAR2(500); BEGIN FOR rec IN (SELECT ( CASE WHEN object_type = 'PACKAGE BODY' THEN 'ALTER PACKAGE ' ||USER || '.' ||object_name ||' COMPILE BODY' ELSE 'ALTER ' ||object_type ||' ' ||USER || '.' ||object_name ||' COMPILE' END ) str FROM user_objects WHERE status = 'INVALID') LOOP v_sql := rec.str; BEGIN EXECUTE IMMEDIATE v_sql; EXCEPTION WHEN OTHERS THEN v_sql := NULL; END; END LOOP; END;
Maybe you are looking for
-
TypeError: gBrowser.contentDocument is not defined
This error happens on my wife with Windows 7 pc and the Pogo site. I uninstalled java and re-installed. restarted and also site active java error message and nothing found. someone has an idea
-
I lost my cd of restoration for Satellite A100-011
I lost my recovery cd I have toshiba satellite A100-011, where can I find a new one in Turkey
-
Hello there my speakers just stopped after that windows update July 23, 2013 PC model: Windows 8 HP Envy m6 im not really an expert on these things, so if anyone can help id really appreciate it thank you
-
New Toshiba Laptop L505-S5990 with Windows 7 Home Premium 32 bit, 3 GB of RAM. Booting cold (to stop), Windows 7 comes in at Blue welcome screen and then hangs. No evidence of hard drive activity. If I shut down (with the power button) and restart,
-
Simulator of calendar app?
Hello We have access to our Lotus Notes Calendar and email through the BES of BB. I develop applications that integrate with the Lotus Notes Calendar, and I'd like to optimize the display of these BB calendar calendar entries. Is there a way to set u