No access to the data in a database linked when calling procedures in the APEX 5
Hello
I use
- APEX 5.0.3
- APEX DB: Oracle DB 12 c
- DB related: Oracle DB 11 g
When you call procedures and packages of APEX-side on the related DB, I can't access the data with a "select...". "in the tables on the DB related.
Is it because of the different versions of DB?
Is there a general setting in my APEX 5.0.3 I need to access the data in the tables on the DB related?
Any help appreciated.
Thanks in advance.
Concerning
Norbert
Hello
Thanks for the reply.
But at least we do the upgrade again.
... when editing a dblink and recompile the schema it all works.
Concerning
Norbert
Tags: Database
Similar Questions
-
Dear all,
What is the 'user access' in the Apex. When I type:
Select the username of all_users;
I do not see users that I created at the Apex (I use Oracle XE). What I need is:
I have a table by its name of 'Agents' and I need to let each officer sees its files only without displaying the records of others.
Maybe have a look at this picture you would understand my request.
[Click here to see the image | http://www.9m.com/upfiles/XLr36804.jpg]
Thanks in advance.I need to let each officer sees its files only without displaying the records of others
In the agents table how do you store the user details (of the apex user who packed / "holds" the record)? In other words how can a record to identify the user, can you have a column where you insert these data, do you establish this apex or use a trigger?
- If you do not have such a column add a first
ALTER table add Agents (record_owner VARCHAR2 (100))
- When you insert records into this table, set this column with v ('APP_USER') as a trigger or directly from the PLSQL process.
- Then change the report query to filter the records owned by this user
Select * agents where record_owner =: APP_USER.
-
To access large partitioned tables over a database link - traps?
Hello
We are in the middle of a business acquisition, and I have a question on the use of links to database access efficiently to large tables. There are two distinct geographical database instances, both on Oracle 10.2.0.5 sitting on Linux boxes.
The main forum (PSHR) contains a PeopleSoft HR system and pays and is sitting in our data center.
The secondary instance (HGPAY) runs a payroll application home grown and is in a different datacenter to PSHR.
The requirement is to allow PeopleSoft (PSHR) to display data of payroll (one employee at a time) targeted to the secondary instance.
For example in HGPAY
CREATE TABLE MY_PAY_DATA AS
SELECT TO_CHAR (A.RN, ' 00000000') 'EMP' - it is a figure 8 leading 0 unique identifier
'20110' | TO_CHAR (B.RN) "PAY_PRD" - it is a format of exercise more than fifteen days in the year (01-27)
C.SOME_KEY - it is the element of remuneration being considered - effectively randomly
, 'XXXXXXXXXXXXXXXXX' "FILLER1.
, 'XXXXXXXXXXXXXXXXX' "FILLER2".
, 'XXXXXXXXXXXXXXXXX' "FILLER3".
FROM (SELECT ROWNUM 'RN' FROM DUAL CONNECT BY LEVEL < = 300) has
, (SELECT ROWNUM 'RN' FROM DUAL CONNECT BY LEVEL < = 3) B
(SELECT TRUNC (ABS (DBMS_RANDOM. (Random())) 'SOME_KEY' FROM DUAL CONNECT BY LEVEL < = 300) C
ORDER OF PAY_PRD, EMP
HGPAY. MY_PAY_DATA is the range partitioned on EMP (approximately 300 employees by partition) and the list below partitioned on PAY_PRD (3 pay periods a secondary partition). I limited the above create statement to represent a sub-partition of data.
Every employee generates an average of 300 lines in this table each pay period. The table has about 180 million lines and all fifteen days more.
In PSHR
CREATE VIEW PS_HG_PAY_DATA (MEP, PAY_PRD SOME_KEY FILLER1, FILLER2, FILLER3)
AS SELECT EMP, PAY_PRD SOME_KEY FILLER1, FILLER2, MY_PAY_DATA@HGPAY FILLER3
PeopleSoft would then generate SQL along the lines of
SELECT * FROM PS_HG_PAY_DATA WHERE EMP = '00002561' AND PAY_PRD = '201025'
The link between data centers where PSHR and HGPAY sit isn't the best in the world, but I expect dozens of hits per day rather than thousands, so I think that the link must have sufficient bandwidth to meet the requirements.
I tried a quick test on two instances of size production test and it works because it presents the data, when I look at the plan of the explain command that I can see that the remote database is only presenting the relevant secondary partition on PSHR rather than the entire table. Until I get in the back with a "job well done" - y at - it a witch hunt that I am absent using dblink to access the partitioned tables of big?Yes, it's just. A lot of it depends on exactly what happens in different "oops" scenarios - you are, for example, just burn some CPU extra until someone comes to the DBA and says "my query is slow" or saturating the network has an impact on critical applications or long random queries prevent some maintenance operations of partition.
In my mind, the simplest possible solution (assuming you are using a username that is fixed in the database link) would be to create a profile on HGPAY for user defined for the link of database that set a value LOGICAL_READS_PER_CALL which was large enough to handle any request '' reasonable '' and low enough to quickly kill any session that has tried to do something 'stupid '. Obviously, you have to define 'stupid' in your particular environment where the scope of a 'simple reconciliation report' is not defined. If there is no political problem and you can adjust the values of profile to the wire when you encounter new reports that slowly increase what is considered '' reasonable '' is probably the most straightforward approach. If you have to put in a change request to change the parameter which must be reviewed by the Control Board change at its next quarterly meeting with the outsourced DBA seller, on the other hand, you could turn a report by 30 minutes in 30 hours over 30 days. However, in an ideal world, this is where I would start.
Becomes more complex, you can use the resource manager to kill applications running too long on the wall clock. Since the network will almost certainly the bottleneck, it is probably unlikely that the limitation of the CPU will do much good - probably you can saturate the network with a very small amount of CPU. Limitation in my mind of the network is an additional step in complexity according to the specifics of your situation and what you are competing with.
Justin
-
Failed to create database link when the password has a special character
I am trying to execute the following statement in sqlplus
create alpha link database to connect to scott identified by tiger! using "db_alpha".
Note that the password of the account has an exclamation mark inside. the command fails. I tried to put the password in quotation marks (') and double quotes (""). Working the double quotes, but then the link does not work properly.
We are required to have a special character in our passwords... so, how can I get this special character in the password for the database link?
Thanks in advance,
DarrenDarren2 wrote:
#2 attempt:
SQL > create database link BLAH connect to user2 identified by 'tiger!' using 'BLAH ';
Created database link
SQL > salt {color: black} {color} ect {color: black} {color} * en {color: black} {color} om my{color:black}{color}_{color:black}{color}table{color:black}{color}@BLAH;
Salt {color: black} {color} ect * en {color: black} {color} om my{color:black}{color}_ta{color:black}{color}ble{color:black}{color}@BLAH
*
ERROR on line 1:
ORA-02085: link on the database of BLAH. AAA. BB. CCC. DDD connects to
DEVDB. AAA. BB. CCC DDD.For me, that makes no sense. If the link does not work... How did get the "invalid username/password" in the #1 attempt?
Learn about the GLOBAL_NAMES initialization parameter. Default GLOBAL_NAMES = TRUE, which means the database link is required to have the same name as the database in which it connects. Database name DEVDB link or define GLOBAL_NAMES = FALSE:
SQL> create user Darren2 2 identified by "tiger!" 3 default tablespace users 4 quota unlimited on users 5 / User created. SQL> grant create session to Darren2 2 / Grant succeeded. SQL> create table Darren2.tbl as select 'Darren2' name from dual 2 / Table created. SQL> create database link sol10@Darren2 2 connect to Darren2 3 identified by "tiger!" 4 using 'sol10' 5 / Database link created. SQL> create database link sol11@Darren2 2 connect to Darren2 3 identified by "tiger!" 4 using 'sol10' 5 / Database link created. SQL> select * 2 from tbl@sol10@Darren2 3 / NAME ------- Darren2 SQL> select * 2 from tbl@sol11@Darren2 3 / from tbl@sol11@Darren2 * ERROR at line 2: ORA-02085: database link SOL11.REGRESS.RDBMS.DEV.US.ORACLE.COM@DARREN2 connects to SOL10.REGRESS.RDBMS.DEV.US.ORACLE.COM SQL> select value from v$parameter where name = 'global_names' 2 / VALUE -------------------------------------------------------------------------------- TRUE SQL> select * from global_name 2 / GLOBAL_NAME -------------------------------------------------------------------------------- SOL10.REGRESS.RDBMS.DEV.US.ORACLE.COM SQL> alter session set global_names=false 2 / Session altered. SQL> select * 2 from tbl@sol10@Darren2 3 / NAME ------- Darren2 SQL> select * 2 from tbl@sol11@Darren2 3 / NAME ------- Darren2 SQL>
I don't have two databases, so in my sol10 database I create two database links sol10@Darren2 and sol11@Darren2 both pointing to itself (back to sol10 database). That's why I use qualifiers link db. The two links you connect as a Darren2 user with password Tiger!. The global database name is sol10 and initialization of setting global_names = true. As you can see what global_name (sol10) corresponds to the name of the link in sol10@Darren2 db (again, the link name is sol10 and Darren2 is qualifying link) select vai db link works OK. But the sol11@Darren2 link fails because the name sol11 link does not match the name db global sol10. However, as soon as I change global_names false, sol11@Darren2 works fine. It will be useful.
SY.
Published by: Solomon Yakobson on January 1st, 2009 08:41
-
Why the data in my database disappears when I restart Tomcat?
I have a DPL Berkeley DB database that I use for a Web application that is running under Tomcat. I can store data in the database and get it back, but when I restart Tomcat and the data have gone. In my view, that the problem is that the data is in memory, it is never written to disk, so it is not persistent across reboots. I think that this, because when I write the data to the database, the size of the files in the data files does not change.
My database is not transactional, nor in writeback mode.
What else could cause this problem? I'm completely stumped.If the environment/store is not transactional (you do not call setTransactional (true)), then the data can be sustainable only equal to 1) you call Environment.sync, 2) a control point is executed by the thread of checkpointer I background or your application, 3) you close the environment itself, that will make a control point.
I suspect that you do not close the environment when you shut down your server.
You can take a look at the writing transactional Applications. He described the durability more in detail.
-mark
-
Remote access to the apex applications
Hi all
I I find a way to allow access to applications apex of remote machines in my local network. Local access works very well. I need allow users to access their customers-browser web applications by using the URL as http://lugao-pc:8282 / apex. I use Apex 4.1.1 in Oracle 11 g 2, using Embedded PL/SQL gateway
I've seen other posts that say remote HTTP connection allow the database using DBMS_XDB EXEC. SETLISTENERLOCALACCESS (false); in SQLPlus as SYSDBA. But that doesn't did not help me. I think it is because I use the PL/SQL no Oracle HTTP Server gateway. If am not wrong how do I allow remote access using existing installation?
Concerning
SadikHello
You must run DBMS_XDB EXEC. SETLISTENERLOCALACCESS (FALSE); If you use Embed PL/SQL gateway.
If you want to use another HTTP server then it is useless.Did you try to turn your firewall server to and see works the connection then?
Kind regards
Jari
-----
My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai -
Using the generic format for the database links in ODI procedures
Hello
As the procedure we use
create table < %=odiRef.getSchemaName ("Target Schema", "D") % >. TABLE2 as
Select * from < %=odiRef.getSchemaName ("staging schema", "D" ") % >. TABLE1:
where Staging Database and target database are logic diagrams which join the respective executing physical schema if the statement above will become like
create table Target_Schema.TABLE2 as
Select * from staging_Schema.TABLE1
I just wanted to know if there any way by which I can ask samethings database of links too.
As if I have statements
create table TABLE2@Target_Database as
Select * from TABLE1@staging_Database
can I replace DB links like Target_Database and Staging_Database?
Help would be appreciated. :)
Thank you
MaheshI'm not entirely sure about the exact condition.
I don't care..1.
Create a variable 2.v_get_src_schema: select ' < %="odiRef.getSchemaName"> >
","D") % > ' double"
v_get_tgt_schema: select ' < %="odiRef.getSchemaName"> >","D") % > ' double" 2.
2 more variables to get the required DBLink
v_SRC_DB_LINK: select DB_LINK from all_db_links where owner =' #PRJ_CODE.v_get_src_schema '
v_TGT_DB_LINK: select DB_LINK from all_db_links where owner =' #PRJ_CODE.v_get_tgt_schema '3.
Create a procedure:
prc_create_table:create table< %="odiRef.getSchemaName" ("schéma="" cible",="" "d")="" %="" >.="" table2@'#prj_code.v_tgt_db_link'="">
Select * from< %="odiRef.getSchemaName" (« schéma="" de="" mise="" en="" scène","d")="" %="" >.="">4.
Create a package:
Connect to all stages of the series with the line OK.Run and let us know what is the come out.
Thank you
Fati -
Access to the applications of Builder Websheets
Hello
I want to give the developer role to one of our users, so it can develop a specific websheet of applications
Problem is this setting a user as a developer still requires access to or another builder or sql application workshop
I wouldn't give any of that, because they could access the application builder page and remove applications without any problem
In the Web application sheet there is a button Builder, is possible to hide it somehow?
I don't see any possibility to do, I tried with the chrome, definition of the element plugin: visibility: hidden and it works, only problem, is that I have no idea where to add this attribute to make it permanent
Thank you!
Hello
To allow a developer to 'create' applications they need the privilege of Application Builder.
I'm no expert with Websheets, but I'm sure that all 'development' is from the front-end of the application, so the user does not require access to the APEX server.
If you have two options:
(1) you will need configure a new application Websheet to this person whenever they need to reapply; OR
(2) create a new area of work/drawing away applications, you don't want him to have access to and they have access to full development.
Amanda.
-
Hello people:
Oracle Database 11 g Express Edition version 11.2
Request Express 4.0.2.00.08
I have a question for you. I developed a simple application for a Department within my organisation:
8 pages (no application process, process page 12)
2 triggers
2 sequences
2 tables
Other departments within my body as the application so they would like their own "copy". Because of the type of information entered in the application, I can't have all the applications use 1 (of course I can but I need to create a somewhat complex authorisation schemes and I'd rather not go that route);
Now, finally the question:
Is there a way to the APEX to copy an application and recreate all the components (table, triggers, etc) from the new table names? APEX makes it definitely easy to make a copy of an application, but I then go through the copy with a fine comb to change all references to the old names of table and replace it with new table names.
Suggestions? Comments? I thank all members of this community of Oracle, because you communicate knowledge where it is lacking...
AquaNX4 wrote:
People of day:
Oracle Database 11 g Express Edition version 11.2
Request Express 4.0.2.00.08
I have a question for you. I developed a simple application for a Department within my organisation:
8 pages (no application process, process page 12)
2 triggers
2 sequences
2 tables
Other departments within my body as the application so they would like their own "copy". Because of the type of information entered in the application, I can't have all the applications use 1 (of course I can but I need to create a somewhat complex authorisation schemes and I'd rather not go that route);
Now, finally the question:
Alas, I fear, that's the wrong question.
Is there a way to the APEX to copy an application and recreate all the components (table, triggers, etc) from the new table names? APEX makes it definitely easy to make a copy of an application, but I then go through the copy with a fine comb to change all references to the old names of table and replace it with new table names.
Any suggestions? Comments? I appreciate everyone in this community of Oracle, as share you information where it is lacking...
If it becomes a business tier application, it must be generated using the level technology company, such as the authorisation schemes, VPD to the multi-tenant data to be stored in the same tables and sturdy PL/SQL API for the maintenance of the data rather than the process Assistant APEX.
Authorisation schemes are of no use in restricting access to the data, they are used to control access to the APEX application components. You can use authorization to control if a user sees a report from the region, but not the rows that are displayed in the report. To do this you must use VPD or views (note that separate sets of tables are not even considered an option).
If all departments use, how long before that some top-level executive wants to have access to the data for each of them? How easy it will be to predict that, when the data is distributed on several tables?
That said, SPV is not available in the XE, and the fact that you use it means that you are unlikely to be able to switch to Enterprise Edition to get it.
My recommendation would be to rebuild the application using a set of tables, the views that restrict access to data by the Department and the generation of reports and PL/SQL with API packages manage data.
-
How to start and stop the APEX?
Hi all! I am new to this forum and APEX too...
We are runing (Version: Application Express 4.1.1.00.23)
I need to reboot the server.
How can I stop APEX graciously and start back after? Thank you!
Kind regards
Ghyslain salvation,
to reinforce what Mike says. Apex is a database and, with the exception of the HTTP server application, runs entirely on the database. (Note with EPG, its all in the database) It contained in the users/schemas database and built items of data such as tables and PL/SQL packages. If the server that is running the Oracle database in which the Apex is installed needs to be restarted, the database must be stopped, which stops indeed Apex. If the HTTP server is also running on this server (ESS or earpiece of the Apex) then this should be stop as well.
Of course, if your desire is not to stop the database, but to deny the user access to the Apex, perhaps for purposes of maintenance of database, then this can be done by stopping the HTTP server or by stopping the EPG.
I hope it is clear now.
André
-
After the upgrade of the APEX 4.2.0.6, I don't see any change
Hello
I have a production APEX running version 3.1. I downloaded APEX 4.2.0.6 and installed. I didn't remove the previous APEX users because I fear that it would change anything prevents existing applications runs properly.
When I connect to APEX http://xxxxxxx:7780/pls/apex / ,, I don't see any change in the user interface. Where is the 4.2.0.6 APEX version?
I can see there are users in the previous version. But I've not deleted the. What prevents the Apex 4.2 runnig?
SQL > SELECT username
2 FROM dba_users
3. WHERE (username AS USER OR name "FLOWS_ %" LIKE '% APEX_')
4 AND USERNAME NOT IN)
5. SELECT "FLOWS_FILES".
6 DOUBLE
7 UNION
8. SELECT 'APEX_PUBLIC_USER' FROM DUAL
9 UNION
10 SELECT SCHEMA s
11 FROM dba_registry
12 WHERE id_comp = 'APEX');
USERNAME
------------------------------
APEX_030200
I used this document to install APEX http://docs.oracle.com/cd/E37097_01/install.42/e35123/otn_install.htm#HTMIG839
Thank you for your help.
Christian
Hi Christian,
chipniz wrote:
Hello Kiran
I redid all installation steps and found that I now have this error:
Service temporarily unavailable
The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
When are you facing this error?
- Access to the APEX Oracle Application Builder (http://someserver:7780/pls/apex)
- Accessing an application in Oracle APEX (directly through URL viz. http://someserver:7780 / pls/apex/f? p = 123:101)
What kind of error is it?
- HTTP error with an error like 404 code
- Error on Web server with detailed description of the error (if so, check the newspapers of OSH for more information)
What is the type of the OHS?
- Oracle Application Server 10g
- Oracle HTTP Server distributed with Oracle Database 11g
Finally it is part of your question:
When I connect to APEX http://xxxxxxx:7780/pls/apex / , I don't see any change in the user interface. Where is the 4.2.0.6 APEX version?
What did you mean by that?
- You receive the login for the old version screen
- You receive a blank page
I would like to you check the following things:
- Check that the APEX_PUBLIC_USER account is unlocked. Please see section 3.5.5.2.1 on expiry of password in the Oracle 11 g database in https://docs.oracle.com/cd/E37097_01/install.42/e35123/otn_install.htm#BHAJHJAG
- Check if you have copied the images properly after the upgrade. Reference: https://docs.oracle.com/cd/E37097_01/install.42/e35123/otn_install.htm#BHAJDGFJ
- Check that you have the correct configuration for images settings, the database connection string, user name and password database. Reference: https://docs.oracle.com/cd/E37097_01/install.42/e35123/otn_install.htm#CHDHCBGI
I hope this helps!
Kind regards
Kiran
-
Active Directory can authenticate to the APEX development environment
Greetings,
Environment:
Apex Version 4.0.2
Database version: 11.2.0.1
WebLogic 10.3.3
Listener of the apex
Is it possible to use Active Directory to authenticate access to the APEX development environment? I have all the individual applications using Active Directory authentication, but I can't find a way to integrate Active Directory to access the development environment.
Thank you
LarryLarry,
No, you cannot change the way in which the APEX Application Builder authenticates users.
brgds,
Peter-----
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
BuilderPlugin: http://builderplugin.oracleapex.info
Work: http://www.click-click.at -
Setting up the environment of the APEX
Hello
I have a series of questions to establish access to the APEX. The ability to use OSH has been discounted. We want to use a separate apache and struggling to configure mod_plsql. The license for mod_plsql indicates that it should not be used in this way. There is a valid alternative?
Kind regardsIt seems that in a first time listener of the Apex has been dismissed by licensing issues. I did research on this subject, but I'm a bit confused. If Apex earphone using WebLogic, is that I have to WebLogic server license? As I read, Apex license includes WebLogic, where we don't need license Weblogic and it's free, it's okay?
The apex is free. It works on XE, which is also free.
ApexListener is free.
WebLogic (WLS) is one of the containers in which you can deploy ApexListener Oracle supported JEE. WLS is a licensed product.
The other supported Oracle JEE containers are Glassfish (licensed) and OC4J. ApexListener can also be run in stand-alone mode, although this is not recommended for Production environments.ApexListerner also runs on other containers not - supported Oracle JEE as community Glassfish (Open Source) server, Tomcat, etc. By failure to load this means that you cannot trigger a SR on Oracle for these, you will need to depend on this forum and the consultants if you enter certain issues.
See you soon,.
-
Problem: Access to the database.
Hello.
I have a problem with my NI Multisim 12 (Student Edition). It installs correctly and correct registry also, but when I run the program it displays these messages
"Problem: access to the database."
The data are not available. Functions using the database will be unavailable. »
And similarly for the database and database user.
In the end, it shows this message:
"Multisim has detected that the main database is not on the current user. Reinstall the program from the original media. »
I have the original of 2012 Labview and Multisim 11 (from a myDaq) media.
After that, I can place any component because the program cannot access data bases. I can open previous designs, but it is not properly simulate.I am the only user of the computer, and I am the administrator.
I have a 64-bit Win7 with Core 2Duo 3 GHz.
I recently installed Labview 2012, which includes this software, so I uninstalled previous Multisim.On the same computer without any problem, I used Mutisim 11. I tried to reinstall Mutisim 11, Mutisim 12, delete windows registry, remove files after installation, giving permission for all files and nothing works. Whenever I have reinstall Multisim it displays these messages.
Please, help me!
Any help, or anyone with this problem or similar, let me know also.Thank you!!!
Once again, many thanks. I solved the problem just now. I need to change the windows registry, following the instructions in the link. Thank you
PD: Do not use Ultralibrarian unless you have a non-free license! hehe. -
Hi ODP.NET Experts.
ODAC 12 c Release 3 (12.1.0.2) ONLY does support the access to the database to Oracle 10 g Release 2 or later?
It does not mean that this will not work for versions earlier before Oracle Database 10g Release 2?
Thank you and best regards,
Alan
Hi Alan,
Yes, it took out RDBMS version 10.2.0.2.0 or superior. Please see below for recommended and supported configurations document
Supported by Oracle Data Provider (Doc ID 726240.1) configurations for .NET (ODP)
Thank you
Indana
Maybe you are looking for
-
Is there a way to "lock" one page above the other in order to take notes on the top to the bottom and do not have the page 'Above' disappear? I love working with several tabs open and wish to have a something like my email or a word document open to
-
I'm creating a presentation for a customer in Keynote. They have a very specific color palette, I've used throughout the document. I created elements in the document that I applied the color palette in without incident. Everything is good so far. Unf
-
When I open Firefox, 6 tabs 'install module' always open, too.
When I open Firefox, 6 tabs 'Install module' open asking me if I want to install modules. How to stop?Thanks for any help.
-
How do you attach a 'job action' of a droplet? The menu is there...
This has been discussed before, but I could not find a recent conversation that relates to the latest version... Compressor 4.2.1 OS X 10.11.2 As noted earlier, when saving a SETTING as a DROPLET, it doesn't seem to be a way to attach a REVENDICATIVE
-
Pavilion 500-439: Bus SM Win 8.1 controller driver needed
Had a 240 GB SSD installed on my new HP Pavilion Windows has to be reinstalled from scratch & now I need a SM Bus controller driver Tried to load the Intel drivers from the HP Driver site He loaded the PCI Simple Communications Controller Driver lack