plsql-package

Find a column and a value from a schema scan all the table in oracle

筅森魡賤 提交于 2020-05-14 02:29:28
问题 I am trying to find a column ( ABC ) and it's value 1234 from a schema , basically i need to to check if ABC and a value from this column 1234 is present in any other table that is mapped to ABC , i tried to do a search the most efficient way but it is taking lot of time and not retrieving the desired result i have tried https://lalitkumarb.wordpress.com/2015/01/06/sql-to-search-for-a-value-in-all-columns-of-all-atbles-in-an-entire-schema/ but the query is not results at all it is running

Many to Many Relationship table Not working cannot delete Value from that

本小妞迷上赌 提交于 2019-12-25 02:28:47
问题 declare begin for i in (select aid ,address from address) loop for j in (select aid ,address from address ) loop if i.address=j.address then if i.aid!=j.aid then update employee_add set aid=i.aid where aid=j.aid; delete from address where aid=i.aid; end if; end if; end loop; end loop; end; / This code works fine as for loop . After that it shows error :------ *Cause: A foreign key value has no matching primary key value. *Action: Delete the foreign key or add a matching primary key. I have

issues with package syntax

﹥>﹥吖頭↗ 提交于 2019-12-11 17:03:55
问题 i am trying to create a package called MSGG_SESSION with a procedure authenticate that accepts two VARCHAR2 parameters for username and password. i am suppose to put an package-private NUMBER variable for the current person ID.If "authenticate" matches a username and password in MSGG_USER , put the matching PERSON_ID in the new variable. Add a function get_user_id to the package that returns the value of the variable holding the person ID. but i get two erros saying table or view does not

When does an Oracle Package Specification become INVALID

南楼画角 提交于 2019-12-07 11:10:46
问题 As far as I know a package body can be replaced and recompiled without affecting the specification. A package specification declares procedures and functions, not defines them, so they can not reference objects, that can make the package specification INVALID. I know that a package specification can reference objects when it uses stand-alone subprograms and other packages to define it's variables. In this case changing referenced objects may cause the specification invalidation. Is there any

When does an Oracle Package Specification become INVALID

血红的双手。 提交于 2019-12-05 16:24:46
As far as I know a package body can be replaced and recompiled without affecting the specification. A package specification declares procedures and functions, not defines them, so they can not reference objects, that can make the package specification INVALID. I know that a package specification can reference objects when it uses stand-alone subprograms and other packages to define it's variables. In this case changing referenced objects may cause the specification invalidation. Is there any other way how an Oracle package specification can depend on (reference) objects and become INVALID