Link OID with existing tables
Is it possible to use existing tables to host some of the informations or do I have to create a new database from scratch for OID ?
If I have to create a new database how can I synchronize information from the LDAP directory and my tables ?
Any help is welcome.
Monique
Hello everyone:
Let me try to answer these question one at a time.
Monique:
You do not need to create a new database to install OiD. You can use an existing databse but keep this in mind. The database must be a compatible version for OiD. For instance, if you are installing version 2.0.6 of OiD, then the database you install it on must be version 8.1.6
OiD will create its own schema of table and views. It will not use any exisiting ones that you have created. So the choice is yours. You can create a new database at the time you install OiD or use an existing one. I hope this answers your questions. If not post another.
Thank you Eddie for your "2 cents" on alternative ways of viewing data in our LDAP server. I want to emphasize a word you used and that word is "browse". Browsing the LDAP server with a SQL type of tool is ok but manipulation of the data should only be done with an approved tool. You wouldnt want to change information in OiD via SQL even though you can. Oracle wants you to treat OiD as if it was an LDAP server because thats what it is. So you should only use standard V2 and V3 LDAP protocol for changing any data. There are a number of 3rd party programs that you can also use to manipulate data in our LDAP server such as JNDI, Netscapes LDAP SDK, and of course Oracles own C, and PL/SQL LDAP API's.
The database user's that own all of the OiD schema objects are ODS and ODSCOMMON.
Last but not least Norzaimi:
Go to www.oracle.com On that website click on the search button and enter "Internet Directory" without the quotes. Leave off the word "Oracle". This should return you about a dozen articles with some very good information. Let me know if you are still unable to see this.
Thanks,
Jay
null
Similar Messages
-
Links associated with a table of names/ids
Is there a better way to do this in faces?
My page has a table of names, I wish to associate a modify/delete actions with each one, allowing the user to just click say the modify link on one and end up in a page to modify that entry. I ended up generate the links as something like:
<table>
<tr>
<h:form>
<input name="scoutId" type="hidden" value="${scoutBean.scoutId}"/>
<h:commandLink action="#{scoutListActionBean.doModify}" value="Modify Scout"/>
</h:form>
</td>
<td>
<h:form>
<input name="scoutId" type="hidden" value="${scoutBean.scoutId}"/>
<h:commandLink action="#{scoutListActionBean.doRemove}" value="Remove Scout"/>
</h:form>
</tr>
</table>
Then in my action routine, I find the value associated with the request paramter "scoutId" to prepopulate the next modify/delete page.
This seemed pretty clumsy to me, anybody got a better way?Yes. Try DBA_TRIGGER_COLS (or the USER, ALL variants)
APC -
How to create table with existing table structure
How to do if i need a table with exactl similar structure of table mara?How to create it?
Hi,
In SE11 there will be a button Copy Table.
Regards,
Satish -
Hi,
I'm investigating Kodo, and how easy it would be to integrate with
existing tables (relational obviously). I didn't find reference to this
in the documentation.
Specifically, I want some tables to have BLOB/CLOB columns, but I don't
want KODO to touch/manage/even think about them. Is this possible? Can
I have control over the field name/column name mapping, and the DB table
name mappings?
I also have a requirement of having a composite primary key for just
about everything. (The first part of the key indicates the company
using the database, and provides extra protection against invalid access
of data in a multi-customer setup). I have read all sorts of nasty
things about having to map my keys to Strings and back again. Is this
going to be an issue/performance issue?
Thanks
QI have an existing application that I'm trying to switch from Poet to Kodo.
class A {
private int a;
class B extends A {
private int b;
TABLE A (int A_OID, int a);
TABLE B (int B_OID, int a, int b);
Object identifiers (IODs) are globally unique (actually intercorporate
for us).
If one object of A and one object of B exist, then there will be one row
in each table.
Is it possible to map Kodo like that? It appears that attribute a must
be stored in the table A.
Thanks,
Joe Batt
Abe White wrote:
Kodo lets you completely control the mapping process if you want to. Given
that you have an existing schema, you might want to try our reverse
mapping tool, discussed here:
http://www.solarmetric.com/Software/Documentation/latest/docs/ref_guide_pc_reverse.html
That can give you a good starting point. If you already have your
classes, though, then see the metadata section for how to control how
those classes map to tables via metadata extensions:
http://www.solarmetric.com/Software/Documentation/latest/docs/ref_guide_meta.html
The end of that chapter includes examples for mapping some classes to some
tables. If you don't want Kodo to touch some columns, then just don't map
them to any fields.
As far as transferring values to/from strings, Kodo includes the built-in
StringificationMapping (see the "factory" and "externalizer" metadata
extensions), or you can manage that process yourself. Kodo handles
compound primary keys without any problems or performance penalties. -
Oracle 11g imp erroneously tries to recreate existing tables with CLOBs?
I have a shell script for loading database dumps from both Datapump and the older exp/imp.
Often when loading dumps, I need to rename the schema owner and tablespace names (which is handled by REMAP_SCHEMA and REMAP_TABLESPACE in Datapump).
However I have a whole bunch of dumps created with exp at this point and not that many Datapump dumps yet. As such the old style dumps are handled by the shell script in this way:
1) A first pass imp is run using INDEXFILE to generate a file with the SQL to create tables and indexes. Options also include FROMUSER and TOUSER.
2) A series of sed command edit the SQL file to change the tablespace names (which are schema owner specific in our case).
3) The editted SQL file is run with sqlplus to create the tables and indexes.
4) A second pass imp is run to load the table rows as well as triggers, stored procedures, views, etc. Options include FROMUSER, TOUSER, COMMIT=Y, IGNORE=Y, BUFFER, STATISTICS=NONE, CONSTRAINTS=N
This shell script has been working great for loading exp dump files into Oracle 9 and Oracle 10 databases, but now that I'm trying to load these dumps into Oracle 11, it fails.
The problem is in step 4, the imp program is trying to create some of the tables that already were created with sqlplus in step 2. The problematic tables all seem to have CLOB columns in them. The table creation fails because it tries to use the tablespace names from the dump file, which do not exist in the destination database. And when the table creation fails, imp then decides not to load the rows for those table.
This seems like a bug in the Oracle 11 imp program. I don't understand why it thinks it needs to recreate tables that already exist when those tables have CLOB columns. Is there something different about CLOB columns in Oracle 11 that I should know about that might be confusing imp into thinking that it needs to create tables when they already exist? Maybe I need to do something to those tables in SQL so that imp does not think it needs to recreate them?
I know that the tables with the CLOBs were created correctly because I was trying to find some way to workaround this. For step 4, I tried using DATA_ONLY=Y, in which case imp does not try to create the tables and just loads the table rows. Of course using DATA_ONLY, I don't get a lot of other things like triggers, view and stored procedures. I started to try to get around that by doing 3 passes with imp, so that I could pick up the missing pieces by using an imp pass with ROWS=N, but strangely that has the same problem of trying to recreate the existing tables.The only solution I've found so far as a workaround is rather convoluted.
1. I took an export using datapump's expdp of SCHEMA1 (in 10g it will skip the table with the xmltype).
2. I imported the data to my empty schema (SCHEMA2) using impdp. To avoid the error that the type already exists with another OID, I used the TRANSFORM=oid:n parameter e.g.
impdp user/pwd dumpfile=noxmltable.dmp logfile=importallbutxmltable.log remap_schema=SCHEMA1:SCHEMA2 TRANSFORM=oid:n directory=MYDUMPDIR
3. I then manually created my xmltype table in the SCHEMA2 and did a select into to load it (make sure you have the select privileges to do so):
INSERT INTO SCHEMA2.XMLTABLE2 SELECT * FROM SCHEMA1.XMLTABLE1;
4. I am still taking an export with exp of the xmltable as well even though I'm not sure I can do anything with it.
Thanks!
Edited by: stacyz on Jul 28, 2009 9:49 AM -
Standard Data Collection Failing with Error ORA-04054: database link does not exist.
Hi Gurus,
When I am running Standard Data Collection in ASCP(APS) instance R12.1.3, its failing with error : ORA-04054: database link does not exist.
There is no such Database link exits which is showing in above error.
Also the database link name in the above error is not profile values in the database.
I think, concurrent might be fetching this database link name from some tables related to plan.
I am not having much knowledge about how this ASCP/APS works.
Need your help to resolve this issue.
Thanks,Hi,
ASCP Collections looks at the dblink from instances definitions from.
1. Responsibility: Advanced Planning Administrator
2. Navigation: Admin > Instances
You may review the note in support.oracle.com - Understanding DB Links Setup for APS Applications - ASCP and ATP Functionality (Doc ID 813231.1) -
Linking user table with system table
Hello, I'm trying to link a user table with IC table in order to asign many sales person to a customer.
I've created a new button in the IC form. When clicked a new form is opened to asign sales person to the IC. Now I need to retrieve the records assigned to this IC. How can I do that???
Regards.
Angel.Hi Angel,
I would put a matrix in the new form where you could see/asign/delete the sales person.
Have a look at this post where you can find a great code from Sebastian Danober to fill a matrix from a recordset.
Another option could be to modify the existing IC form and add a new folder with a matrix where you can manage the sales person.
Check this other post with code for adding folder to an existing form.
Regards,
Ibai Peñ -
Several CRUDLs again: App from existing table Form on table with report?
Hi,
I posted a message a couple of days ago, asking if it was possible to automatically generate several CRUDL gui patterns per application. Later I answer myself discovering that the "Form on table with report" option for creating a page, make just that.
However, I can see that the option for application level CRUDL (app from existing table) has more functionality (search, export to excel, data analysis, even charts, cool ;-). It creates about 10 pages per table, contrasting with the two created by the "Form on table with report" option. I thought that "Report with form" could be the answer, but it seems just another link to the same option.
So, once again: is possible to call the functionality of "App from existing table", several times within the same application? (of course each time is likely to refer a distinct table). How do I insistently ask for this? Well, cause I can see in my horizon many applications what will entirely consist of table-maintenance services ... so, with htmldb I could generate them very fast!. In fact, once I have toasted my crudl pattern I would even like to save it and generate the applications on a non interactive basis (maybe calling something in pl/sql?, command line?) ... is that possible?
Thanks in advance,
salu2
dario estepario ..Hi Scott,
Dario - The "create application from existing table"
functionality was available in 1.6. In 2.0, the
Create Application wizard has changed. But you can
create as many sets of pages in the same application
as you need, all on different tables, using the
patterns available in that wizard. You can also
supplement those generated pages later by creating
chart pages or whatever else you need.Mmm?, ups ... them am I running the 1.6 version? I installed it from the companion cd. Ok, I'll try the separately distributed htmldb version. Thanks.
>
At present there is no exposed API to let you do any
of this programmatically.;-(
>
ScottRegards,
dario estepario ... -
How to create a table from an existing table with new column
Hi !
Please help me.
I want to create a table from an existing table with data and add two new column to the new table.
What will be the syntax?craete table new_table as select a.*, 'somevalue' new_col1, 'somevalue'
new_col2 from old_table a;Also there is a pitfall - newly created table will accept column type and precision from the select statement, so further you can be needed to modify columns
if you want to have VARCHAR2 instead of CHAR for example:
SQL> create table new_dept as select dept.*, 'New data' new_col from dept;
Table created.
SQL> desc new_dept
Name Null? Type
DEPTNO NUMBER(2)
DNAME VARCHAR2(14)
LOC VARCHAR2(13)
NEW_COL CHAR(8)
SQL> alter table new_dept modify (new_col varchar2(8));
Table altered.
SQL> desc new_dept
Name Null? Type
DEPTNO NUMBER(2)
DNAME VARCHAR2(14)
LOC VARCHAR2(13)
NEW_COL VARCHAR2(8)Rgds.
Didn't see michael's post - it reflects the fix for this problem using CAST.
Message was edited by:
dnikiforov -
How to find the list of existing tables in a schema using DB link?
Hi
I know how to find the list of existing tables in a schema using the following query
SQL> select * from tab;
but, how to list the tables using a DB link?
For Example
SQL> select * from tab@dblink_name;
why this doesn't work?
Pl advice me
Thanks
Reddy.ORA-02019: connection description for remote database not foundHave you used this database link successfully for some other queries?
The error posted seems to indicate that the DB Link is not functional at all. Has it worked for any other type of DML operation or is this the first time you ever tried to use the link? -
Please follow the scenario:
using C#
1) current database file name is DB20122013.
when user click on new year button
2)Create backup copy of current database
3)New database should create with all table(excluding table "Dailytemp" and "DailyMain") with data and database name as DB20132014.
Musakkhir Sayyed.Hi,
I hope, below stored procedure is useful for your scenario.
CREATE PROC Create_New_Database
( @DBNAME VARCHAR(550)
)AS
Test : Exec [Create_New_Database] @DBNAME='DB20122013'
BEGIN TRY
SET NOCOUNT ON
DECLARE @sql VARCHAR(MAX), @DBNAME_NEW VARCHAR(550),@num int
IF EXISTS(SELECT 1 FROM sys.databases WHERE name=@DBNAME) AND ISNUMERIC(RIGHT(@DBNAME,4))=1
BEGIN
SELECT @num= RIGHT(@DBNAME,4)
SELECT @DBNAME_NEW='DB'+CAST(@num AS VARCHAR(10))+''+CAST(@num+1 AS VARCHAR(10))
IF EXISTS(SELECT 1 FROM sys.databases WHERE name=@DBNAME_NEW)
BEGIN
SELECT @DBNAME_NEW+' database already exists'
END
ELSE
BEGIN
SET @sql='USE '+@DBNAME+' '+' backup database '+@DBNAME+' to disk = ''C:\'+@DBNAME+'.bak'' '
+' restore database '+@DBNAME_NEW+' from disk = ''C:\'+@DBNAME+'.bak'''
+' with move '''+@DBNAME+''' to ''C:\'+@DBNAME+'_data.mdf'' ,
move '''+@DBNAME+'_log'' to ''C:\'+@DBNAME+'_log.log'''
EXEC (@sql)
SET @sql=''
SET @sql=' USE '+@DBNAME_NEW+' IF EXISTS(SELECT 1 FROM SYS.TABLES WHERE NAME=''Dailytemp'')
BEGIN DROP TABLE Dailytemp END IF EXISTS(SELECT 1 FROM SYS.TABLES WHERE NAME=''DailyMain'')
BEGIN DROP TABLE DailyMain END '
EXEC (@sql)
END
END
ELSE
BEGIN
SELECT 'Database is now found or Database name does not mach the scenario'
END
SET NOCOUNT OFF
END TRY
BEGIN CATCH
DECLARE @ErrorMessage NVARCHAR(4000)
DECLARE @ErrorSeverity INT
DECLARE @ErrorState INT
SELECT @ErrorMessage = ERROR_MESSAGE(), @ErrorSeverity = ERROR_SEVERITY(),@ErrorState = ERROR_STATE()
RAISERROR (@ErrorMessage,@ErrorSeverity,@ErrorState )
END CATCH;
GO
Regards,
RAMBHARATH -
Stored procedure with database link with "from table(...)"
Hi guys,
I've been told I can't create views on a database by the design team and so have to use this stored procedure to obtain the values.
select HAN_ID, HAN_DS, GLOBAL_IN, LOCAL_IN
from table(cast(ODADMIN.ODP00002_QUERY.Execute001@DBLINK(11312,'EN') as
ODADMIN.ODP00002_001_Array@DBLINK)) WHERE LOCAL_IN = 'Y';I've been told that it works when you remove the database links (so on the actual database) when you remove the cast part. I've tried it with my link and with/without the cast part but it doesn't work. With the example above I get the error: ORA-00907: missing right parenthesis.
When I remove the CAST-AS and the additional parenthesis it brings i get the error: ORA-00904: "ODADMIN"."ODP00002_QUERY"."EXECUTE001": invalid identifier
When I do table( *"* ODADMIN.ODP00002_QUERY.Execute001@MWW_DEV(11312,'EN') *"* )... -- wrapping the call in speech marks I get: ORA-00972: identifier is too long
Anyone see what's wrong? Thanks for any help.
MikeHi Ben,
Asking now. By a view I mean one local to the database; I could create one on APEX but then I use the database link twice instead of just 1.
His reasoning Ben:
Firstly, Maintenance. We will have to maintain additional views (at additional code). Secondly, if the view has a JOIN, then you can't update through it (without complexities). If we have to get the View to pass the data to a Procedure (that's a pain). Also, standards..
All update occur via either a Procedure, or a Base view, across over 1000 tables
That's the standard, and doing things differently is costly long term
People will not know how it works, it will have to be explained, maintained..etc.
If the Application has the Business Rules, then updates via Base Views, that's a more standard way of developing. Also, if you update via this view, you'll update multiple rows in one call, which is in-effficient if only ONE row needs to change. Therefore, single row updates from the Application is more efficient
The procedure is as follows:
--SET SERVEROUTPUT ON
DECLARE
nPBusLoc NUMBER(5):=11312;
sPHanId VARCHAR2(3):='SB1';
sPLngId VARCHAR2(2):='EN';
sPDesc VARCHAR2(30);
sPAllowAlloc VARCHAR2(1);
sPShowEnq VARCHAR2(1);
sPAllowDel VARCHAR2(1);
sPShowScan VARCHAR2(1);
sPGlobalLocal VARCHAR2(1);
sPReturnCd VARCHAR2(2);
sPReturnTx VARCHAR2(100);
BEGIN
ODADMIN.ODP00001.getHandlingCodes
(nPBusLoc -- IN NUMBER
,sPHanId -- IN VARCHAR2
,sPLngId -- IN VARCHAR2
,sPDesc -- OUT VARCHAR2
,sPAllowAlloc -- OUT VARCHAR2
,sPShowEnq -- OUT VARCHAR2
,sPAllowDel -- OUT VARCHAR2
,sPShowScan -- OUT VARCHAR2
,sPGlobalLocal-- OUT VARCHAR2
,sPReturnCd -- OUT VARCHAR2
,sPReturnTx -- OUT VARCHAR2
DBMS_OUTPUT.PUT_LINE('nPBusLoc = '||nPBusLoc );
DBMS_OUTPUT.PUT_LINE('sPHanId = '||sPHanId );
DBMS_OUTPUT.PUT_LINE('sPLngId = '||sPLngId );
DBMS_OUTPUT.PUT_LINE('sPDesc = '||sPDesc );
DBMS_OUTPUT.PUT_LINE('sPAllowAlloc = '||sPAllowAlloc );
DBMS_OUTPUT.PUT_LINE('sPShowEnq = '||sPShowEnq );
DBMS_OUTPUT.PUT_LINE('sPAllowDel = '||sPAllowDel );
DBMS_OUTPUT.PUT_LINE('sPShowScan = '||sPShowScan );
DBMS_OUTPUT.PUT_LINE('sPGlobalLocal = '||sPGlobalLocal );
DBMS_OUTPUT.PUT_LINE('sPReturnCd = '||sPReturnCd );
DBMS_OUTPUT.PUT_LINE('sPReturnTx = '||sPReturnTx );
END;
/Mike
Edited by: Dird on 27-Aug-2009 01:50 -
How to test issue with accessing tables over a DB link?
Hey all,
Using 3.1.2 on XE, I have a little app. The database schema for this app only contains views to the actual tables, which happen to reside over a database link in a 10.1.0.5.0 DB.
I ran across an issue where a filter I made on a form refused to work (see [this ApEx thread| http://forums.oracle.com/forums/message.jspa?messageID=3178959] ). I verified that the issue only happens when the view points to a table across a DB link by recreating the table in the local DB and pointing the view to it. When I do this, the filter works fine. When I change the view back to use the remote table, it fails. And it only fails in the filter -- every other report and every other tool accessing the remote table via the view works fine.
Anyone know how I can troubleshoot this? For kicks, I also tried using a 10.2.0.3.0 DB for the remote link, but with the same results.
TIA,
Rich
Edited by: socpres on Mar 2, 2009 3:44 PM
Accidental save...ittichai wrote:
Rich,
I searched metalink for your issue. This may be a bug in 3.1 which will be fixed in 4.0. Please see Doc ID 740581.1 Database Link Tables Do NoT Show Up In Table Drop Down List In Apex. There is a workaround mentioned in the document.
I'm not sure why I never thought of searching MetaLink, but thanks for the pointer! It doesn't match my circumstances, however. The Bug smells like a view not being queried in the APEX development tool itself -- i.e. the IDE's coding needs changing, not necessarily those apps created with the IDE.
I'm working on getting you access to my hosted app...
Thanks,
Rich -
Partitioning an Existing Table with data
Hi All,
I am few tables with data, I need to Partition the table without affecting existing table values is it possible?.
if yes then Please suggest me some ideas to archive that..
Thanks & Regards
SamiHi All,
I Need to partition for existing table with 1 million records
1. First partition should be created for 6 months
2.Second partition should created for 1 year.
3.So as of now we have 6 months Data in production + another 6 months data in First partition + another 1 year data in Second partition.
4.More than 2 year’s data’s should be moved other partition or archived.
kindly provide your valuabe suggestion.
Thanks & Regards
Sami -
Help, please! Any advice on how I link my new iMac and my new itunes software with existing external harddrive containing my entire itunes library?
Hello!
It should be a matter of
Quiting iTunes first if it's running
Connecting your external harddrive to your Mac, use the Finder to browse to it
Find your iTunes folder on the ext HDD and double-click on iTunes Library.itl
If you have any trouble with this, please let us know.
Maybe you are looking for
-
At max how many columns is advisable to create in a table/view
Hi All, I have two transaction table from which i want to create a simple view or materialized view. But the number of columns is about 200. So i want to know at max how many columns is advisable from the performance point of view. Even though i will
-
Can not Insert data to Microsoft Access successfully
I am using Microsoft Access database, and trying to insert some data into a table with a "while" loop, but every time, the last row can not be inserted although the return value of the "executeUpdate()" is 1, can anyone tell what's wrong with that? t
-
Iomega usb zip drive not mounting to desk top
i have a external usb iomega 250 zip drive and i can seem to get it to mount to the desk top i look on iomega website and it says that OS X dose not need any software install or additional drivers to work i cant seem to get it to mount on the desk to
-
I am writing a program that is not using Logical Database but the client wants to see the F4 Help for Organizational Structure similar to what is displayed in LDB PERNR with Info Type 0001. How can this be done? Since you cannot post pictures here, t
-
Include in cache configuration?
I would like to define a "corporate" cache configuration file that later can be included and extended by project cache configuration files. I have seen some hints that this is supported by the Common package in the incubator but I have not seen any e