ADFS Database Store Procedures functions
Following table are list of store procedure for ADFS Database. May I know the function (maybe in simple description) of each store procedure? (this is an audit assessment question raised as part of the implementation)
adfsartifactstore
adfsconfiguration
Store Prod name
Store Prod name
CreateArtifact
UpdateScope
DeleteArtifact
DeleteScopes
GetArtifact
AddScopeIdentity
Expire
GetScopeIdentity
RemoveScopeIdentity
AddScopeSigningCertificate
GetScopeSigningCertificate
RemoveScopeSigningCertificate
AddScopeContactInfoAddress
GetScopeContactInfoAddress
RemoveScopeContactInfoAddress
AddScopePolicy
GetScopePolicies
RemoveScopePolicy
CreateClaimDescriptor
GetClaimDescriptors
UpdateClaimDescriptor
DeleteClaimDescriptors
GetMetadataSources
UpdateMetadataSource
AddAuthorityArtifactResolutionService
GetAuthorityArtifactResolutionService
RemoveAuthorityArtifactResolutionService
AddAuthoritySingleLogoutService
GetAuthoritySingleLogoutService
RemoveAuthoritySingleLogoutService
AddAuthoritySingleSignOnService
GetAuthoritySingleSignOnService
RemoveAuthoritySingleSignOnService
AddScopeSingleLogoutService
GetScopeSingleLogoutService
RemoveScopeSingleLogoutService
AddScopeAssertionConsumerService
GetScopeAssertionConsumerService
RemoveScopeAssertionConsumerService
AddAuthorityClaimType
GetAuthorityClaimType
RemoveAuthorityClaimType
AddScopeClaimTypeOptional
GetScopeClaimTypeOptional
RemoveScopeClaimTypeOptional
AddScopeClaimTypeRequired
GetScopeClaimTypeRequired
RemoveScopeClaimTypeRequired
CreateServiceSettings
GetServiceSettings
UpdateServiceSettings
DeleteServiceSettings
QueryServiceStateSummaryModification
AddLeasedTask
ResetLeasedTask
TryAcquireLease
RemoveLeasedTask
AddClaimDescriptorExtensibleProperty
RemoveClaimDescriptorExtensibleProperty
GetClaimDescriptorExtensibleProperties
AddScopeExtensibleProperty
RemoveScopeExtensibleProperty
GetScopeExtensibleProperties
AddAuthorityExtensibleProperty
RemoveAuthorityExtensibleProperty
GetAuthorityExtensibleProperties
CreateDefaultObjects
ClearAdfsConfiguration
IdentityServerNotificationCleanup
AddServiceStateSummary
UpdateServiceStateSummary
RemoveAllServiceStateSummary
IncrementServiceStateSummarySerialNumber
RemoveServiceStateSummary
GetServiceStateSummary
SqlQueryNotificationStoredProcedure-5c1490a9-f8eb-47ca-afc6-dc32a6288bae
AddServiceObjectTypeRelationships
UpdateServiceObjectTypeRelationships
RemoveServiceObjectTypeRelationships
GetServiceObjectTypeReferences
AddSyncProperties
UpdateSyncProperties
RemoveSyncProperty
RemoveSyncProperties
GetSyncProperties
GetSyncProperty
CreateAuthority
GetAuthorities
UpdateAuthority
DeleteAuthorities
AddAuthorityIdentity
GetAuthorityIdentity
RemoveAuthorityIdentity
AddAuthorityContactInfoAddress
GetAuthorityContactInfoAddress
RemoveAuthorityContactInfoAddress
AddAuthorityPolicy
GetAuthorityPolicies
RemoveAuthorityPolicy
CreateScope
GetScopes
This would be best asked at:
http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=Geneva
Paul Bergson
MVP - Directory Services
MCITP: Enterprise Administrator
MCTS, MCT, MCSE, MCSA, Security, BS CSci
2012, 2008, Vista, 2003, 2000 (Early Achiever), NT4
Twitter @pbbergs http://blogs.dirteam.com/blogs/paulbergson
Please no e-mails, any questions should be posted in the NewsGroup.
This posting is provided AS IS with no warranties, and confers no rights.
Similar Messages
-
Database stored procedures(functions)
I know that the JDBC allows one to create and call stored procedures for
databases. I am curious to know if it is also possible to call a
stored "function" and access its result.
For example if I have a function declared as follows:
FUNCTION fun ( value varchar2) return boolean
How can I call this function and get the boolean value that
is returned??
Can someone please tell me how this can be done using java if
it can be done at all?
Thanks
Lex.// calling FUNCTION fun ( value varchar2) return boolean
CallableStatement cstmt = conn.prepareCall("{? = CALL fun(?)}");
// register fun's return type
cstmt.registerOutParameter(1, Types.BIT);
// set fun's argument
cstmt.setString(2, some_string);
// exec fun -> call execute() OR executeUpdate()
cstmt.executeUpdate();
// get results -> value of a JDBC BIT parameter as a boolean in Java
boolean boo = cstmt.getBoolean(1); -
Establishing database connection in stored procedures/functions
Hi, any body knows how to do it....
Consider there is 2 database, Oracle_1 and Oracle_2.
I want to fetch some table data in Oracle_2 from Oracle_1 database Stored procedure/functions through query staments and cursors. How to establish the Oracle_1 DB connection in Oracle_2 DB stored procedure/function. Is it possible?Hi,
Consider there is 2 database, Oracle_1 and Oracle_2.
I want to fetch some table data in Oracle_2 from Oracle_1 database Stored procedure/functions through query staments and cursors. How to establish the Oracle_1 DB connection in Oracle_2 DB stored procedure/function. Is it possible?
It's not the same how you implement the programs in java or .Net to create DB connection. It's different over here. You have use the DataBase Links in order to make to connection with another DB and use that Link in the stored procedure or function where ever its necessary as per your requirement.
- Pavan Kumar N -
Solaris 10_u8 upgrade slow down mysql store procedure
Hi,
Recently we upgraded the following and found out that MySQL store procedure takes more than 40 times longer to run:
Old configurations:
- Hardware T5120
- Solaris 10_u4 8/7
- MySQL 5.1.30
- Primary service domain has 8 ldoms, primary has 4 cpus and 2G mem
- Ldom mgr 1.0.3
- Database server sits on LDOM2 with 12 vcpus and 8G mem, two image file disk export from primary, basically the whole 2nd disk raid 1 for LDOM2, one 15G for OS and other 100G for database
- Store procedure only takes 0.87 seconds to finish
New configurations:
- everything is same as above, except I patched the primary to kernel patch 142900-02, then the mysql store procedure in LDOM2 takes about 35 seconds to finish
I have tried all different kind of combinations, from the above configuration I think there might be some kernel parameters settings changed since the upgrade but not sure what are they. If any one know or has some kind issues please let me know. Any help would be appreciated.
Thanks!Hello.
Patch 142900-02 is old. You can try install 142909-17. This patch obsolete 142900.
For rest you can remove patch 142900-02 and check performance.
Regards. -
Help!How can I find the name of a calling procedure from within a procedure/function?
Is there anyway to find out the name of calling procedure(database) from within a database stored procedure/function? This is required for creating an auditing module.
Thanks,
Abraham
===========
email:[email protected]You can use this query to get the procedure names that are calling your procedure.
SELECT name FROM all_Dependencies
WHERE upper(referenced_name) = 'YOUR_PROC_NAME'
In your procedure, you can get these values into a cursor and then use them one by one.
Hope this would help.
Faheem -
Return package cursor from another store procedure
Hello
I’m new in Oracle, and I have the following problem:
I have an cursor in a package defined like that:
create or replace
PACKAGE "TestPACKAGE" AS
cursor DOWNLOAD_CURSOR is select A.* from Table1 A, Table2 B
END TestPACKAGE;
In reality there is more than one package with different cursors. I want to use that DOWNLOAD_CURSOR in a store procedure, function or another package, to return it to the client as a ref cursor.
Something likes that:
create or replace
procedure aa_test (retCURSOR OUT sys_refcursor) is
begin
retCURSOR := TestPACKAGE.DOWNLOAD_CURSOR;
end;
or to replace that procedure with another method to return data, and use them in a .NET application.961449 wrote:
Hello
I’m new in Oracle, and I have the following problem:
I have an cursor in a package defined like that:
create or replace
PACKAGE "TestPACKAGE" AS
cursor DOWNLOAD_CURSOR is select A.* from Table1 A, Table2 B
END TestPACKAGE;
In reality there is more than one package with different cursors. I want to use that DOWNLOAD_CURSOR in a store procedure, function or another package, to return it to the client as a ref cursor.
Something likes that:
create or replace
procedure aa_test (retCURSOR OUT sys_refcursor) is
begin
retCURSOR := TestPACKAGE.DOWNLOAD_CURSOR;
end;
or to replace that procedure with another method to return data, and use them in a .NET application.Static PL/SQL cursor declarations and Ref Cursors are not interchangable. You cannot return the static cursor definition as a ref cursor.
See...
SQL> ed
Wrote file afiedt.buf
1 declare
2 v_rc sys_refcursor;
3 cursor cur_emp is select * from emp;
4 begin
5 open v_rc for cur_emp;
6* end;
SQL> /
open v_rc for cur_emp;
ERROR at line 5:
ORA-06550: line 5, column 17:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 5, column 3:
PL/SQL: Statement ignored -
Calling ORACLE Store Procedure with parameters in user define function
Hi everybody,
We have a scenario connecting Oracle DB thru JDBC adapter.
We have to call store procedure with input parameter and output parameter to retrieve data from DB. The implementation was made using JDBC adapter by building the correct XML message with EXECUTE action, and it works fine.
Now we need to use DB lookup within mapping. I wrote users define function with SELECT statement (using the JDBC adapter) and it works fine but I need to call store procedure in ORACLE instead of SELECT statement.
I found lot of examples concerning DB lookup but none of them explained how to write UDF calling store procedure in ORACLE with input and output parameters.
I am looking for an example.
Thanks in advance,
GigiI agree with you, but issue is we have lots of existing store procedure, which we need to call where damn required. I am sure those will be few but still i need to find out.
If you think you are going to get existing MS Stored Procedures or Oracle Packages that had nothing to do with the ORM previously to work that are not geared to do simple CRUD operations with the ORM and the database tables, you have a rude awakening
coming that's for sure. You had better look into using ADO.NET and Oracle Command objects and call those Oracle Packages by those means and use a datareader.
You could use the EF backdoor, call Oracle Command object and use the Packages, if that's even possible, just like you can use MS SQL Server Stored Procedures or in-line T-SQL via the EF backdoor.
That's about your best shot.
http://blogs.msdn.com/b/alexj/archive/2009/11/07/tip-41-how-to-execute-t-sql-directly-against-the-database.aspx -
ADF 11, USING EJB, CALL STORE PROCEDURE, A PROBLEAM?
ADF 11, USING EJB, CALL STORE PROCEDURE, A PROBLEAM?
I have a store procedure:
CREATE OR REPLACE PACKAGE BODY PK_HR1
IS
FUNCTION FUNC04
RETURN CUR_RESULT
IS
X_CUR CUR_RESULT;
BEGIN
OPEN X_CUR FOR
select mako, tenko, diachiko from kho;
RETURN X_CUR;
EXCEPTION
WHEN OTHERS THEN
RAISE;
END FUNC04;
END PK_HR1;
In the entities class, I have a NamedStoredProcedureQuery:
@Entity
@NamedStoredProcedureQuery(name="Kho.FUNC04",
resultClass=Kho.class,
procedureName="PK_HR1.FUNC04" )
public class Kho implements Serializable {
In session bean, i have a method
public class SessionEJBBean implements SessionEJB, SessionEJBLocal
public void test() throws Exception{
try {
//code here ...
List<Kho> listKho = em.createNamedQuery("Kho.FUNC04").getResultList();
System.out.println("aaaa");
} catch (Exception ex) {
ex.printStackTrace();
} finally {
I try running, but always show errror
this errors:
Internal Exception: java.sql.SQLException: ORA-06550: line 1, column 7:
PLS-00221: 'FUNC04' is not a procedure or is undefined
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Error Code: 6550
Call: BEGIN PK_HR1.FUNC04(); END;
Query: ReadAllQuery(jp.co.mfr.sgs.bean.Kho)
help help me?You need to use a CallableStatement for this.
--olaf -
Send CURSOR to Function/Store Procedure
Hi to all,
I want to send a cursor to a function or store procedure.
I got 3 tables with the same structure, I made a cursor for update and other stuff but I want to save some data to a text file, so I want to make a function or sotre procedure that I can send the cursor and the function/store procedure make the Job (save the data to a text file) with any tables.
Can I do That?
Any sample or documentation?
Thanks in advance.HLopezRD wrote:
Hi to all,
I want to send a cursor to a function or store procedure.
Any sample or documentation?Do you want to send an actual cursor or just the data?
Either way, a reference cursor might do the job for you. Check out reference cursors in the Oracle on-line documentation. You can pass them to and from procedures and functions, and they provide access to data in the database. -
How to create a schema and assign roles with store procedure or function?
Hi All,
I am creating a webpage that will call oracle store procedure or function to create a schema and add roles. Please let me know if there a method to do that.
Thank youHi CristiBoboc,
Thank you very much for your help. Here is my code to create a user:
create or replace
FUNCTION user_create (user_name IN nvarchar2, user_pw IN nvarchar2)
RETURN number
IS
sql_stmt varchar2(200);
sql_stmt2 varchar2(200);
var_temp_count NUMBER(2);
un varchar2(30) := user_name;
up varchar2(30) := user_pw;
BEGIN
sql_stmt := 'create user :1 identified by :2
default tablespace users
temporary tablespace temp
quota 5m on users';
sql_stmt2 := 'grant developers to :1';
EXECUTE IMMEDIATE sql_stmt USING un,up;
EXECUTE IMMEDIATE sql_stmt2 USING un;
select count(*) into var_temp_count from dba_users where username = UPPER(user_name);
return var_temp_count;
END;
When I run, I get following error:
exec :myvar :=user_create('aaa','12345');
BEGIN :myvar :=user_create('aaa','12345'); END;
ERROR at line 1:
ORA-01935: missing user or role name
ORA-06512: at "CSDBA.USER_CREATE", line 15
ORA-06512: at line 1 -
Help: How to open wrapped store procedure on oracle database
Dear Gurus,
how to open the wrapped store procedure on oracle database?
anyone can help me...?
reply me soon
take careAny other way so that I can see the flow of data that written on wrapped store procedure?You need to see the source code which has keeped outside of database. Read a wrapped code is not common for humans...
reply me asap If you want an asap answer, raise a SR for oracle support, not through a forum which is based on volunteers.
Nicolas. -
How to pass xml data as objects into Database using store procedures
Hi All,
I don't have much knowledge on store procedure,can anybody help how to pass the xml as objects in Database using store procedure.
My Requirement is I have a table with three fields EMPLOYEE is table name and the fields are EMP_ID,EMP_TYPE AND EMP_DET,I have to insert the employees xml data into corresponding fields in the table.
Input Data
<ROWSET>
<ROW>
<EMP_ID>7000</EMP_ID>
<EMP_TYPE>TYPE1</EMP_TYPE>
<EMP_DET>DEP</EMP_DET>
<ROW>
<ROW>
<EMP_ID>7000</EMP_ID>
<EMP_TYPE>TYPE2</EMP_TYPE>
<EMP_DET>DEP2</EMP_DET>
<ROW>
<ROW>
<EMP_ID>7000</EMP_ID>
<EMP_TYPE>TYPE3</EMP_TYPE>
<EMP_DET>DEP3</EMP_DET>
<ROW>
<ROWSET>
So each row values has to inserted into resp fields in the table.
Regards
ManiDo you have a similar structure in your stored procedure ?
In that case you can simply call the procedure from soa using db adapter and do a mapping to assign the values. -
Are ADF BC4J based on database package procedures?
Hi all!
Is it possible to create ADF BC4J components base on database package procedures like building ORACLE FORMS blocks on case generated module api?
If yes, how can I achieve this? In the wizards I only see tables, views an so on!
regardsRead capital "26.4 Basing an Entity Object on a PL/SQL Package API" in "Oracle® Application Development Framework
Developer’s Guide For Forms/4GL Developers" -
Create Store Procedure to Count Number of records in Database for each table
Hello,
I have created the code which counts the number of records for each table in database. However, I want create store procedure for this code this code that when ever use execute the Store Procedure can provide the database name to execute it and as a result
table will display number of records in each table.
Below you will find the code its working:
CREATE
TABLE #TEMPCOUNT
(TABLENAME
NVARCHAR(128),
RECORD_COUNT BIGINT)
-- Creating a TEMP table
EXEC
sp_msforeachtable
'insert #tempcount select ''?'', count(*) from ? with (nolock)'
SELECT
* FROM
#TEMPCOUNT
ORDER
BY TABLENAME
DROP
TABLE #TEMPCOUNT
This code need to be convert in store procedure and user can give database name when execute the procedure in order to count the records.
Looking forward for your support.
Thanks.
SharePoint_Consultant_EMEASomething like:
set quoted_identifier off
go
create procedure usp_TableCounts
@DBName as varchar(1000)
as
set nocount on
declare @SQLToExecute varchar(1000)
CREATE TABLE #TEMPCOUNT (TABLENAME NVARCHAR(128), RECORD_COUNT BIGINT) -- Creating a TEMP table
set @SQLToExecute = @DBName + ".dbo.sp_msforeachtable 'insert into #tempcount select ''?'', count(*) from ? with (nolock)'"
print @SQLToExecute
exec (@SQLToExecute)
SELECT * FROM #TEMPCOUNT
ORDER BY TABLENAME
DROP TABLE #TEMPCOUNT
GO
Satish Kartan www.sqlfood.com -
Execute ORACLE STORE PROCEDURE from DATABASE
Hi Everyone...
i have a store procedure, it has a 5 params, 3 are IN parameters and 2 left are OUT parameters, I need execute this store procedure using a SQL Intruction like this
DECLARE integracion_sia_kac PROCEDURE FOR KACTUS.SP_SIAKAC_NMDHODO
:ll_horario,
:ll_ide_doc,
:ls_con_kac,
@PINDREGI=:ls_ind_registro output, @PVALERRO=:ls_error_int output
USING gt_kactus;
i think this function is using from MSSQL Server, this has a three IN params but the declaration of the OUT params I don't understand.
HELP ME!!!!!.... I need know way to execute the SP
ThanksWell it is very simple!
example:
CREATE OR REPLACE PROCEDURE PROC1 (P1 IN NUMBER, P2 IN NUMBER, P3 OUT NUMBER) IS
BEGIN
P3 := P1 + P2;
END;
This is how to use PROC1 from, say, PROC2 :
CREATE OR REPLACE PROCEDURE SomeShema.PROC2 IS
Var1 NUMBER(15,2);
Var2 NUMBER(15,2);
ReturnParamFromPROC1 NUMBER(15,2);
BEGIN
Select SomeField INTO Var1 from Table1 where Table1.ID = 10;
Select SomeField INTO Var2 from Table2 where Table2.ID = 20;
PROC1(Var1, Var2, ReturnParamFromPROC1);
DBMS_OUTPUT.PUT_LINE('Returned value from PROC1 is : '||ReturnParamFromPROC1);
END;
Maybe you are looking for
-
I've been using Speed Dial for many months (2+years). then, suddenly one day I lost it. It is not where I can see it. If I click the Tools Add-ons drop down I can see speed dial is there but no way can I restore the speed dial icon back to the menu b
-
Dear Friends, I have a Sales invoice with 50 pages and i want to take the print out of first 5 pages only,is there any settings in SAP where i can give from to pages,Pls suggest. Regards Mahendar
-
I'm still learning how to use the new iTunes format. Today I purchased an album and added it to theapprpriate playlist. That list was alreadyon my iPod Touch, so I want to replace it with the updated version. The problem is that I casn't figure out h
-
I have an IPhone 5. The screen flashes bright blue, then B & W snow, then makes a short hissing sound and shuts off. It did it 3-4 times and now it will not turn on. Should I try to have it serviced or replace it?
-
when I install Oracle11G on Fedora Core 7 an error occur : UnsatisfiedLinkError exception loading native library. njni11 did I lost any component or need to install other package ?