Apex Asset manager/ ID link with database
Hello,
I use Asset manager demo and i want to know a the link between ID and database is done with "Automatic processing row (DML).
I create my own page and trying to insert data in the database but i have error with the primary key.
ID is a hiden field so no data encoded.
Gus C wrote:
Apex 3.2
We are having problems using database links with lov's
If I use this code in a report, it works
select f.id||' - '||f.name display_value
,f.id return_value
from WWV_FLOW_CUSTOM_AUTH_SETUPS@&P215_DATABASE. a
,WWV_FLOWS@&P215_DATABASE. f
where a.name='CUSTOM_LOGIN_SCHEME'
and A.FLOW_ID = F.ID
order by 1Where P215_DATABASE is a hidden item on the page containing the db link name.
If I use the same code in a lov we get error.You get an error in the App Builder because there's no P215_DATABASE value in the builder's session state, so <tt>&P215_DATABASE.</tt> evaluates to NULL, making the query invalid SQL:
select f.id||' - '||f.name display_value
,f.id return_value
from WWV_FLOW_CUSTOM_AUTH_SETUPS@ a
,WWV_FLOWS@ f
where a.name='CUSTOM_LOGIN_SCHEME'
and A.FLOW_ID = F.ID
order by 1Similar thing will happen in the app at runtime if a session state value for P215_DATABASE hasn't been set.
Change the LOV definition to the Function returning SQL query form, and conditionally include the DB link only if the item has a value:
return '
select f.id||'' - ''||f.name display_value
,f.id return_value
from WWV_FLOW_CUSTOM_AUTH_SETUPS' || case when :P215_DATABASE is not null then '@' || :P215_DATABASE else null end || ' a
,WWV_FLOWS' || case when :P215_DATABASE is not null then '@' || :P215_DATABASE else null end || ' f
where a.name=''CUSTOM_LOGIN_SCHEME''
and A.FLOW_ID = F.ID
order by 1';
Similar Messages
-
Enterprise Asset Management (EAM) Integration with FI/CO
Hi,
Enterprise Asset Management (EAM) integration with FI/CO Configuration process tell me any one.
Regards,
Surendra.Hi,
Costing Integration with PM / EAM:
1. Under Costing Data for Maintenance & Service Orders:
Costing Variants, Valuation Variants, Costing Sheet, Assignment of costing variants to Order types
2. General Order Settlement
Settlement Profile, Allocation Structure
3. Settings for Display of costs
Value Categories, Cost elements assignment to value categories
Regards,
Maheswaran. -
ATG publishing(asset management), staging, production topology configuration
I want to configure atg publishing, staging and production databases/datasources and servers for a typical atg commerce site.
I do not want to use CIM tool to do the same. Hence, can anyone tell me what are the sql scripts to run on PUBLISHING(Asset Management), STAGING and PRODUCTION databases?
It will be great if you can give me scripts specifically for VERSIONING, SWITCHING and CORE schemas.
Am not able to find whole set of instruction at one place. Please help meYou don't have all the scripts at one place.
You need to identify the modules you need and in each module you have the scripts in the sql folder.
Other way is for each product (CA, Merchandising, CSC etc), ATG provides the list of scripts to be executed in the specific product documentation.
Peace
Shaik -
Require details on Enterprise Asset management - Treasury FICO and SD
Could you provide details to understand Enterprise Asset Management in association with Treasury, FICO and SD/Logistics.
Hi
Can you give us the business scenario & what exactly you need by this
Regards
chandrashekhar -
Equipment/asset management with LabVIEW
I would like to write a basic equipment/asset managment program with LabVIEW, since I just haven't liked the commercial ones that I have tried for various reasons.
My question is how can I manage the information using LabVIEW...? Is there any way to create a small database file (perhaps *.csv) with LabVIEW and be able to easily update the fields in that file as the asset status changes?You can, but you should use a real database. NI installs the free version of SQL Server when you load the data supervisory control toolkit (and leaves it there if you uninstall the toolkit). MySQL and SQLite are available online and Jet is built into Windows.
Don't however use the database connectivity toolkit -- not worth the effort.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
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 -
I want to add another management server to our existing SCOM environment. But whenever I run this setup on a new server I get stuck in the window for selecting the OperationsManager database. The database field stays blank and in the OpsMgrSetupWizard log
there are lines that the setup version is not compatible with the database version. But I use the same installer as when I installed the other management servers a year ago.
Maybe there is a newer setup installer? But I can't find it.
[10:42:54]: Error:
:Error:setup version: 7.0.9538.0 is not compatible with database version: 7.1.10226.0
[10:42:54]: Info:
:Info:Using DB command timeout = 1800 seconds.
[10:42:54]: Info:
:Info:isOMDatabase: Read returned true. so far, this is OM DB, not an empty DB
[10:42:54]: Debug:
:Connection was not open. We will try to open it.
[10:42:54]: Debug:
:SqlConnectionReady returned True.
[10:42:54]: Info:
:Info:Using DB command timeout = 1800 seconds.
[10:42:54]: Info:
:Info:isOMDatabase: Read did not return true. The MG is missing. This is not OM DB
[10:42:54]: Info:
:Info:Using DB command timeout = 1800 seconds.
[10:42:54]: Always:
:Azman store table not found in OperationsManagerDW table, assuming this is an not a valid OMDB for empty DB scenario.
[10:42:54]: Info:
:Info:DatabaseConfigurationPage: DB connection attempt completed.
[10:42:54]: Info:
:Info:DatabaseConfigurationPage: DB connection attempt completed.Never mind, found it!
Apparently there was a newer version of SCOM setup in msdn and someone upgraded our existing SCOM environment. Downloaded the new setup, new report viewer controls and a System
CLR Types for Microsoft® SQL Server® 2012 and now it works!! -
OIM 9.1.0 with Database User Management: Connector Exception upon Connect
Hi,
I've been struggling with the Database User Management connector (9.0.4) with Sybase, following the steps word-for-word as per the documentation (Oracle® Identity Manager Connector Guide for Database User Manage Release 9.0.4; E10425-0; July 2009).
When defining the IT Resource through the Install Connector wizard, I get the following when it does a connection test:
14:51:52,795 ERROR [WEBAPP] Class/Method: CreateITResourceAction/testConnectivityForDataBase/ClassNotFoundException encounter some problems: No ClassLoaders found for: com.sybase.jdbc2.jdbc.SybDriver
java.lang.ClassNotFoundException: No ClassLoaders found for: com.sybase.jdbc2.jdbc.SybDriver
even though I've ensured jconn2.jar is in the ThirdParty directory, reflushed the cache, and restarted OIM; the connector still can't seem to load the driver.
I've tried the database testing script with similar results.
Any thoughts?
Cheers
Simon
PS: I believe v5.5 of JConnect (as required by the OIM Connector) has been EOL'd and Sybase. They recommend you use v6.0 (v6 is jconn3.jar)), which from what I can see should work as com.sybase.jdbc3.jdbc.SybDriver; I tried that as well but had the same ClassNotFoundException.I've fixed it; needed to copy jconn2.jar into the $JBOSS_HOME/lib directory and restart the server.
-
Using database link with a dynamic SQL in Forms 5
I have a Form 5 application where a database link is specified in a client version of dynamic SQL. The function that the application is designed to perform is to access data in a table in a remote database and use it to populate another table in a local database with the same structure as the source table. Dynamic SQL is used because the name of the table can only be resolved during run time.
The problem is that it gives error with code 'ORA-03113' and text 'End-of-file on communication channel' when you try to run it.
Is it not possible to use a database link with a dynamic SQL? What can I do to overcome the problem ?Try to create a local view based ao the remote table and use the view.
-
Database link with the alias and full description in the connect string
Hi,
i have created database link with alias in tnsentry and full description
and suppose i have removed the tnsnames.ora file what will be the impact on the database link that is whether database link will work or not i am sure db link created with alias won't work and how about db link created with full description and which one you prefer
Thanks# Parameter file initora for Database prd
### Global database name is db_name.db_domain
global_names = TRUE
db_name = prd
db_domain = world
# TNSNAMES.ORA for prd ###############################
prd.world = (DESCRIPTION = (ADDRESS = (COMMUNITY = tcp.world)
(PROTOCOL = TCP) (Host = 100.10.100.1) (Port = 1521))
(CONNECT_DATA = (SID = prd) (GLOBAL_NAME = prd.world)
(SERVER = DEDICATED)))
Our database link points from the local database test to the remote database prd. Therefore we need the global database name for prd. Ask the remote database administrator for these information or connect to prd and execute the following query on prd:
SQL> select GLOBAL_NAME from GLOBAL_NAME;
GLOBAL_NAME
prd.WORLD
CREATE DATABASE LINK prd
CONNECT TO system IDENTIFIED BY system_passwd
USING 'prd';--- alias
so the connection description will be ---select ename from [email protected]
useful link
http://www.akadia.com/services/ora_dblinks.html -
i am using my MS Access 2013 to connect with my oracle database. I created the odbc link and successfully have connection test pass. However i can;t link the database with my MS access. When i am using different software (mapinfo), i am able to connect to oracle database. The error is"1013: user requested cancel of current operation"
In MS access, i open the external data and select odbc. Select my odbc link created previously, enter the password and after a while the error message pop up.
But if i am using another tools, such as SQL Developer or Mapinfo, i will able to connect to oracle database using the same odbc link. -
How to recreate enterprise manager with database vault
I'm testing the Oracle database Vault option at database version 11.1.0.7 but there are some thing that does not work correct in the test. One of them is that I do not be able to recreate the enterprise manager repository. After probe several ways with database option enabled I decided to disable it. With the database vault option disabled I recreated the emanager ok but after enabled the database vault option again the database vault administrator does not browse for me:
The firefox notice me an error with resource /dva.
I hope you can help me.when you have vault on do you get errors in the realm audit reports ?
or are you trying to create an oem repository in a vault enabled database ? -
Link metadata with database fields
Can I - and how - link metadata fields (as they will appear in the PDF properties) with database fields?
You'll need to read about Adobe Extensible Metadata Platform format (XMP). Start here:
Adobe XMP in depth -
XP SP3 with Dreamweaver can't link mySQL database
My OS is XP SP3
When it sets linking to database would show the error message
" HTTP ERROR! 403 STOP"
I have tried these two solution method
install this : Dreamweaver Extention Fix and "Resolved issues with Dreamweaver MX 2004 update (7.0.1)"
but the situation is the same!!
how can i do ?Because of XP SP2 preventing access between Dreamweaver and MySQL,
DW have provided two kinds of method to solute these problem.
But it doesn't work in XP SP3.
Who can help me?? SOS! -
Oracle Database XE - apex on Windows 7 - Problem with Connection from another Windows 7 Computer
Hello,
I started with Oracle Database XE 11g, with apex, did the upgrade to Apex 4.2.6 and started in developing a small Application.
I wanted to Connect to my Computer A (with Database runing on it) from another Windows 7 Computer B.
So I put in in Firefox: //A:8080/apex but I only received a timeout.
Of course on both Computers there is a windows-Firewall running, so I stopped on both Systems the Firewall, but its the same still.
In the windows explorer running on Computer B , I can see the data of Computer A and both Computers are in the same home-net-group. (sorry for my poor english).
Is there anyone who cann tell me how to get the Connection running ?
Maybe I didn't see the info about this in the manuals, if it is there, please give me a hint.
many thanks
Wilhelm Kästner SalzburgHi,
Check if this helps
https://docs.oracle.com/cd/E17781_01/install.112/e18803/toc.htm#XEINW127
Regards,
Jari
Maybe you are looking for
-
How do you add a web site to a folder in the iMac Bookmarks Bar?
Safari 6.0.5 does not have a "+" left of the URL. According to the Apple Safari video, that is how you add a web site to a folder in the Bookmarks bar.
-
whenever i try to sync my new ipod 80g my computer reboots help!!
-
How to handle Exception in Forms??
Hi, We have a customer facing application...self-service kinda things actually with self registration, forgot password/ username and edit profile. We are using SIM forms for all of these. Now as per requirement we need to call some web services as ba
-
How to automate accept client of the server side?
Hi..... I am a beginner of using J2ME to developing my final year project. I have some problem of using bluetooth packet. I can't accept again the client message when the server accepted before. Any one can solve my problem? How can I using the loop
-
I have a macbook pro with Mac OS 10.4.11, and I have noticed extremely low airport signals on my laptop. I thought maybe that it was always the routers I was using, because my laptop is in perfect condition, and i had not changed anything on it. But