Global_names parameter in pfile
please say to me ,what is this parameter.
if i change its value from 'true' to 'false' , what will be happen where.
GLOBAL_NAMES parameter enforces that a dblink has same name as the db it connects to.
please say to me ,what is this parameter.
if i change its value from 'true' to 'false' , what will be happen where.
Similar Messages
-
ORA-02069: global_names parameter must be set to TRUE for this operation
I have 10g database and a schema 'TMAPP'
And I have two table in TMAPP as
create table user_menu_privs
company_code varchar2(5),
bu_code varchar2(12),
user_group varchar2(30),
user_group_type varchar2(1),
menu_option_code number(5),
enabled varchar2(1),
query_only varchar2(1),
default_lang varchar2(3),
created_by varchar2(10),
created_on date,
updated_by varchar2(10),
updated_on date,
constraint pk_user_menu_privs primary key (company_code,bu_code,user_group,user_group_type,menu_option_code),
constraint fk_user_menu_privs foreign key (company_code,bu_code,user_group,user_group_type)
references user_group(company_code,bu_code,user_group,user_group_type)
create table user_dst
company_code varchar2(5),
bu_code varchar2(12),
userid varchar2(10),
user_group varchar2(30) ,
user_group_type varchar2(1) ,
font_size number(2) ,
font_name varchar2(100) ,
address_id number(10),
created_by varchar2(10),
created_on date,
updated_by varchar2(10),
updated_on date,
constraint pk_user_dst primary key (company_code,bu_code,userid,user_group,user_group_type),
constraint fk_user_dst foreign key (company_code,bu_code,user_group,user_group_type)
references user_group(company_code,bu_code,user_group,user_group_type)
I have another database 11g with a schema TMAPP.
Here I have created a database link 'to_dev' is connecting to the 10g db
using this I can connect and see the data from 10g TMAPP
I have created two views
create or replace view user_menu_privs as
select *
from user_menu_privs@to_dev
where user_group in
(select user_group from user_dst
where user_group_type='F');
create or replace view user_dst as
select * from user_dst@to_dev;
and I executed
delete from user_menu_privs
where menu_option_code=108;
I am getting the error
ORA-02069: global_names parameter must be set to TRUE for this operation
after that I set the global_names in 11g as TRUE
then I am getting another error as
ORA-02085: database link TO_DEV connects to DEV.REGRESS.RDBMS.DEV.US.ORACLE.COM -- that means link is not wokring
Please help
Dennis
Edited by: DJ on Mar 13, 2012 5:49 AM
Edited by: DJ on Mar 13, 2012 5:51 AM
Edited by: DJ on Mar 13, 2012 5:53 AM
Edited by: DJ on Mar 13, 2012 5:55 AM
Edited by: DJ on Mar 13, 2012 5:56 AMOP wrote
>
But you said
create a database link in 11g database with 11g database global name and put 11g database global_name=true.
and put 10g database golba_name=false;
>
That isn't what I said at all. Reread my first reply. The first part is a copy of what you had stated.
>
ORA-02069: global_names parameter must be set to TRUE for this operation
after that I set the global_names in 11g as TRUE
>
And then I said
>
That is because when global_names is TRUE, the database link name MUST be same as the global db name of the database to which the link connects to.
You need to drop the database link and recreate it using the global name of the database it connects to.
'link name MUST be same as the global db name of the database to which the link connects to.' - I didn't say 11g.
And I didn't say 'put 11g database global_name=true' because you had already done that! 'after that I set the global_names in 11g as TRUE.
1. 11g - global_names MUST be TRUE
2. 11g - database link name MUST be the same as the global db name of the database to which the link connects to - 10g global db name
3. 10g - gloibal_names setting is irrelevant -
Global_names parameter. True or false?
Hello,
One of my projects has a live database and a test database, where both have been set up through the DBCA in exactly the same way. I have set up a remote database link for each one successfully.
Only question is one of them i have set the global_names parameter to true and it works fine, while the other database the remote database link would only work when the global_names parameter was set to false. This was after i attempted to create the database link with the same name as the target database.
Can anyone throw any light on why this is the case please?
Thanks in advanceGLOBAL_NAMES specifies whether a database link is required to have the same name as the database to which it connects. If the value of GLOBAL_NAMES is FALSE, then no check is performed. Oracle recommends setting this parameter to TRUE to ensure the use of consistent naming conventions for databases and links.
-
Location of Parameter File (pfile)
Hello,
I like to know, does Oracle stores the location of Parameter file (pfile) in any of the object?
Thanks
Sameer
nullYes if you use the Oracle Parallel server option.
By default an instance will start a database in exclusive mode and no other instance will be able to attach to the database.
To start multiple instances on the same db you need to start them in parallel:
startup pfile=$ORACLE_BASE/admin/sid1/initsid1.ora PARALLEL
then after changing your ORACLE_SID:
startup pfile=$ORACLE_BASE/admin/sid2/initsid2.ora PARALLEL
Note: There is actually alot more involved then this. See the Oracle Parallel Server documentation for your version at http://tahiti.oracle.com -
Significance of Global_names parameter in Oracle CDC and Oracle Streams
Hi,
I am trying to implement a sample Oracle CDC example.
I read in some examples that we need to set a parameter *'global_names= TRUE'*. (which means that all dblink names should be same as their respective database names)
But my doubt is that what will happen if i use the default value 'FALSE' for this parameter without changing it to 'TRUE'.
Is it mandatory to make 'global_names= TRUE' ?
Could anyone please explain this.
Thanks in Advance
Regards,
Gowreesh.Hi Sybrand,
Thanks for the reply.
Currently there are some dblinks in my database(with dblink names different from the database).
My concern is,
If i make global_names=TRUE, then all my earlier dblinks with that database will not work.
and if I DONOT make global_names= TRUE, then i will not be able to work with Oracle CDC/Streams with the database.
I am looking to find out any work around to overcome this deadlock type of situation.
I would be very thankful if you can give some idea to come out of this problem.
Regards,
Gowreesh -
LINK to Database with different GLOBAL_NAME
Could anybody help me? We have two databases with different GLOBAL_NAME parameter. First database has GLOBAL_NAME=true, second - 'false'. I would like to make LINK from first database to second. If I make link name as a simple word ('DBST'- for example), ORACLE adds DOMAIN name and connects with error ORA-02085. Second database doesn't use DOMAIN name.
ThanksThis script will export the activeDocument as a jpg and gif
function exportSFWJpg( doc, saveFile, qty ) {
var exportOpts = new ExportOptionsSaveForWeb( );
// see guide for other options
exportOpts.format = SaveDocumentType.JPEG
exportOpts.includeProfile = true;//default false
exportOpts.quality = qty;
if ( saveFile.exists ) saveFile.remove( );
doc.exportDocument( saveFile, ExportType.SAVEFORWEB, exportOpts );
function exportSFWGif( doc, saveFile, qty ) {
var exportOpts = new ExportOptionsSaveForWeb( );// default format is gif
// see guide for other options
if ( saveFile.exists ) saveFile.remove( );
doc.exportDocument( saveFile, ExportType.SAVEFORWEB, exportOpts );
var doc = activeDocument;
var docPath = decodeURI( doc.path );
var docName = decodeURI ( doc.name );
docName = docName.match( /(.*)(\.[^\.]+)/ ) ? docName = docName.match( /(.*)(\.[^\.]+)/ ) : docName = [ docName, docName, undefined ];
var saveName = docName[ 1 ];
exportSFWJpg( doc, new File( docPath + '/' + saveName + 'POWERPOINT.jpg' ), 80 );
exportSFWGif( doc, new File( docPath + '/' + saveName + 'WEB.gif' ) ); -
Cluster_Database parameter in init file
Hi All,
I have received one cluster environment backup so when I start with restore operation, I have created pfile and provide list of required parameters. There is one parameter called cluster_database which I set to TRUE. When I want to start database in nomount mode with created pfile it failed with ORA-03113. If I removed cluster_database parameter from pfile then there is no error and DB started in nomout mode.
Does it mean that given backup is from non-cluster environment? Please guide..
Thanks in advance.Hi,
During restore of database yes, I prefer to opt for working on single node instead of cluster. Coming to issue of startup (during the non-recovery operation), if you are facing then that could be different (needs to check across/verify the parameters)
- Thanks
Pavan Kumar N -
How to rename global_name to NEW_DBSID after System Copy
Hello,
I changed SID D22 to S11 during system copy.The System Copy guide recommends to rename global_name on Oracle.
I have some questions.
1) Is the following procedure correct?
SQL>alter database rename global_name to S11;
2) If I do not rename global_name, what happens?
I refer to the guide "Homogeneous and Heterogeneous
System Copy for SAP Systems Based
on SAP Web Application Server
ABAP 6.40 SR1".
6.2 Performing Follow-On Actions in the
Target System
Oracle: If you changed the <DBSID> during the system copy, it is recommended to adapt the global_name parameter with the following SQL command:
alter database rename global_name to <NEW_DBSID>;
If the parameter is not existing on your system, ignore this step.
thanks,
KeishiHello Keishi,
just for information.. the official oracle documentation about that topic:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/ds_admin.htm
> 1) Is the following procedure correct?
Here is a test in my MDD test database:
SQL> SELECT * FROM GLOBAL_NAME;
GLOBAL_NAME
MDD.WORLD
SQL> ALTER DATABASE RENAME GLOBAL_NAME TO MDD2.WORLD;
Database altered.
SQL> SELECT * FROM GLOBAL_NAME;
GLOBAL_NAME
MDD2.WORLD
SQL> ALTER DATABASE RENAME GLOBAL_NAME TO MDD.WORLD;
Database altered.
SQL> SELECT * FROM GLOBAL_NAME;
GLOBAL_NAME
MDD.WORLD
> 2) If I do not rename global_name, what happens?
If you use a distributed database system, you need to identify each database by a unique identifier (the global name).
For more information, take a look at the oracle documentation:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/ds_concepts.htm#i1007500
Regards
Stefan -
Hi,
If we set the GLOBAL_NAMES parameter to TRUE, then we have to give the dblinks the same name as the remote database. That is the fact. But a dblink is a connection to only a schema for the remote db. If I have to create multiple dblinks to multiple schemas of the remote db, how to do it?
Thanks,DBA_1976 wrote:
Hi,
If we set the GLOBAL_NAMES parameter to TRUE, then we have to give the dblinks the same name as the remote database. That is the fact. But a dblink is a connection to only a schema for the remote db. If I have to create multiple dblinks to multiple schemas of the remote db, how to do it?
Thanks,consider actually doing as below
CREATE DATABASE LINK TEST1 CONNECT TO USER1 IDENTIFIED BY PASS1 USING 'LINK1';
CREATE DATABASE LINK TEST2 CONNECT TO USER2 IDENTIFIED BY PASS2 USING 'LINK2';
& reporting the results back her
Handle: DBA_1976
Status Level: Newbie (150)
Registered: Jun 6, 2005
Total Posts: 813
Total Questions: 124 (84 unresolved)
how SAD! -
How to enable block change tracking with pfile
Hello
I want to use enable block change tracking (for fast incremental RMAN backup). kindly advice how can i use this parameter using pfile.
Thanks
KrishnaKrishna Agnihotri wrote:
Hello
I want to use enable block change tracking (for fast incremental RMAN backup). kindly advice how can i use this parameter using pfile.
You could have just tried ,
D:\app\aristadba\product\11.2.0\dbhome_1\database>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Tue Aug 30 10:04:20 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup pfile=initorcl112.ora
ORACLE instance started.
Total System Global Area 263639040 bytes
Fixed Size 1373964 bytes
Variable Size 213911796 bytes
Database Buffers 41943040 bytes
Redo Buffers 6410240 bytes
Database mounted.
Database opened.
SQL> alter database enable block change tracking using file 'block';
Database altered.
SQL>Just to show that the file actually gets created,
SQL> alter database enable block change tracking using file 'block';
Database altered.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
D:\app\aristadba\product\11.2.0\dbhome_1\database>dir
Volume in drive D has no label.
Volume Serial Number is A408-F176
Directory of D:\app\aristadba\product\11.2.0\dbhome_1\database
08/30/2011 10:05 AM 11,600,384 BLOCK
05/17/2010 10:45 AM 2,048 hc_orcl112.dat
10/17/2009 01:35 PM 1,015 INITorcl.ORA
08/30/2011 10:01 AM 1,042 INITorcl112.ORA
12 File(s) 21,412,139 bytes
3 Dir(s) 17,036,451,840 bytes free
D:\app\aristadba\product\11.2.0\dbhome_1\database>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Tue Aug 30 10:06:40 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> alter database disable block change tracking;
Database altered.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
D:\app\aristadba\product\11.2.0\dbhome_1\database>dir
Volume in drive D has no label.
Volume Serial Number is A408-F176
Directory of D:\app\aristadba\product\11.2.0\dbhome_1\database
08/30/2011 10:06 AM <DIR> .
08/30/2011 10:06 AM <DIR> ..
05/17/2010 08:55 AM <DIR> archive
05/17/2010 10:45 AM 2,048 hc_orcl112.dat
10/17/2009 01:35 PM 1,015 INITorcl.ORA
08/30/2011 10:01 AM 1,042 INITorcl112.ORA
12/22/2005 04:07 AM 31,744 oradba.exe
08/30/2011 09:05 AM 9,314 oradim.log
12/24/2009 08:09 PM 1,536 PWDorcl.ora
08/07/2011 11:00 PM 1,536 PWDorcl112.ora
04/15/2011 05:52 PM 9,748,480 SNCFORCL112.ORA
02/10/2011 09:00 PM 3,584 SPFILEORCL.ORA
08/30/2011 09:59 AM 3,584 SPFILEORCL112.ORA
02/10/2011 09:07 PM 7,872 upgrade.logAman....
Edited by: Aman.... on Aug 30, 2011 10:08 AM added 2nd code snippet -
How to startup the database from pfile?
Hi guys.
hope all of you fine.
how to startup the database from pfile?
Thanks.You can create pfile from spfile
SQL>create pfile='/tmp/pfile.ora' from spfile;
then
SQL>startup pfile='/tmp/pfile.ora';
You can edit pfile.ora file and startup your database with this newly changed database parameter using pfile
And you can define you're using pfile or spfile by issuing:
SQL> show parameter spfile; -
InitSID.ora file parameter
Hi ,
We using ECC 6.0 with Oracle 10.2.0.2 , we need to change the parameter db_cache_sie from 294 mb to 1 gb , So i edit the file and change the parameter . Then i restart the system . After restart the system i checked the parameter it will changed to 1gb . But today i just checked the parameter , it will show the old parameter 294 mb .
So kindly tell me what is happening and tell me the solution to change the parameter .
Regards
SelvanHi ,
Oracle 10g always use spfile for the purpose of maintaining database parameters .So you want to make any changes then first you need to create pfile from spfile because you cannot make changes directly in spfile as its not recommended by oracle.
So first change pfile from spfile by givind command create pfile from spfile via sql prompt .Then modify the parameter in pfile & again give command create spfile from pfile & restart your databse to make the changes effective.
Or the best solution to change the database parameter is to change via sql prompt prompt eg::
alter system set <parameter>=<value> scope=spfile
Thanks..
Mohit -
Hidden parameters appears after Oracle 11gR2 upgrade
Platform: HP-UX B.11.31 U ia64
Upgrading from: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
Upgrading to : Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Issue : There are around 130 hidden parameter appear after Oracle 11gR2 upgrade.
Before upgrade I have commented the hidden parameters on the PFILE. PFILE only to start the database for the Oracle 11gR2 upgrade.
Before upgrade, checking the hidden parameter:
SQL> SELECT name,description from SYS.V$PARAMETER WHERE name LIKE '\_%' ESCAPE '\';
optimizerextended_cursor_sharing_rel
optimizer extended cursor sharing for relational operators
allowlevel_without_connect_by
allow level without connect by
I am using client parameter file ( PFILE ) commented the hidden parameters highlighted above.
However after successful upgrade to 11gR2, creating SPFILE from the PFILE ( commented the hidden parameters) now i am getting 132 hidden parameters.
SQL> select count(1) from sys.V$PARAMETER where name like '\_%' escape '\';
COUNT(1)
132
SQL> select name from sys.V$PARAMETER where name like '\_%' escape '\';
name
aggregationoptimization_settings
alwaysanti_join
alwayssemi_join
andpruning_enabled
btree_bitmap_plans
bloomfilter_enabled
bloomfolding_enabled
bloompruning_enabled
complexview_merging
compressioncompatibility
connectby_use_union_all
convertset_to_join
costequality_semi_join
cputo_io
dimensionskip_null
eliminatecommon_subexpr
enabletype_dep_selectivity
fastfull_scan_enabled
firstk_rows_dynamic_proration
gbyhash_aggregation_enabled
generalizedpruning_enabled
globalindexpnum_filter_enabled
gsanti_semi_join_allowed
improvedouterjoin_card
improvedrow_length_enabled
indexjoin_enabled
ksbrestart_policy_times
leftnested_loops_random
localcommunication_costing_enabled
minimalstats_aggregation
mmvquery_rewrite_enabled
newinitial_join_orders
newsort_cost_estimate
nljbatching_enabled
optimadjust_for_part_skews
optimenhance_nnull_detection
optimnew_default_join_sel
optimpeek_user_binds
optimizeradaptive_cursor_sharing
optimizerbetter_inlist_costing
optimizercbqt_no_size_restriction
optimizercoalesce_subqueries
optimizercomplex_pred_selectivity
optimizercompute_index_stats
optimizerconnect_by_combine_sw
optimizerconnect_by_cost_based
optimizerconnect_by_elim_dups
optimizercorrect_sq_selectivity
optimizercost_based_transformation
optimizercost_hjsmj_multimatch
optimizercost_model
optimizerdim_subq_join_sel
optimizerdistinct_agg_transform
optimizerdistinct_elimination
optimizerdistinct_placement
optimizereliminate_filtering_join
optimizerenable_density_improvements
optimizerenable_extended_stats
optimizerenable_table_lookup_by_nl
optimizerenhanced_filter_push
optimizerextend_jppd_view_types
optimizerextended_cursor_sharing
optimizerextended_cursor_sharing_rel
optimizerextended_stats_usage_control
optimizerfalse_filter_pred_pullup
optimizerfast_access_pred_analysis
optimizerfast_pred_transitivity
optimizerfilter_pred_pullup
optimizerfkr_index_cost_bias
optimizerfull_outer_join_to_outer
optimizergroup_by_placement
optimizerimprove_selectivity
optimizerinterleave_jppd
optimizerjoin_elimination_enabled
optimizerjoin_factorization
optimizerjoin_order_control
optimizerjoin_sel_sanity_check
optimizermax_permutations
optimizermode_force
optimizermulti_level_push_pred
optimizernative_full_outer_join
optimizernew_join_card_computation
optimizernull_aware_antijoin
optimizeror_expansion
optimizerorder_by_elimination_enabled
optimizerouter_join_to_inner
optimizerouter_to_anti_enabled
optimizerpush_down_distinct
optimizerpush_pred_cost_based
optimizerrownum_bind_default
optimizerrownum_pred_based_fkr
optimizerskip_scan_enabled
optimizersortmerge_join_inequality
optimizersqu_bottomup
optimizerstar_tran_in_with_clause
optimizersystem_stats_usage
optimizertable_expansion
optimizertransitivity_retain
optimizertry_st_before_jppd
optimizerundo_cost_change
optimizerunnest_corr_set_subq
optimizerunnest_disjunctive_subq
optimizeruse_cbqt_star_transformation
optimizeruse_feedback
orexpand_nvl_predicate
orderednested_loop
parallelbroadcast_enabled
partitionview_enabled
pivotimplementation_method
prerewrite_push_pred
predmove_around
pushjoin_predicate
pushjoin_union_view
pushjoin_union_view2
pxminus_intersect
pxpartition_scan_enabled
pxpwg_enabled
pxual_serial_input
queryrewrite_setopgrw_enable
removeaggr_subquery
replacevirtual_columns
resourcemanager_plan
rightouter_hash_enable
selfjoinmv_duplicates
sqlmodel_unfold_forloops
sqltunecategory_parsed
subquerypruning_enabled
subquerypruning_mv_enabled
tablescan_cost_plus_one
unionrewrite_for_gs
unnestsubquery
usecolumn_stats_for_functionI just came across a similar case: 1 (just one) of our (RAC-) databases has 130-something underscore-parameters set to non-default values.
version is still 11.1.0.7 (e.g. not 11gR2).
All of those hidden parameters seem to be CBO related (list on request).
Weird is: Only one of our (very similar, supposedly same-config) databases have these hidden parameters set.
Colleagues justly wonder: Who, When, What has caused these parameters to be expliclty set for this one system?
Note: we do not have the complete history of this system documented (systems have been managed by 3 different parties already).
It is quite possible they came in with some patch or upgrade (catupgr?) somewhere between 11.1.0.1 and 11.1.0.7, but a confirmation would be nice.
Information welcome.
System info:
Linux hostname 2.6.18-164.9.1.el5 #1 SMP Wed Dec 9 03:27:37 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
Versions
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE 11.1.0.7.0 Production
TNS for Linux: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
5 rows selected. -
Now connected to database B :
INSERT INTO abc_hesids
( abc_key,
hesid,
date_added,
date_updated,
dob,
sex,
newnhsno,
homeadd,
procode3,
lopatid
SELECT 'X',
0,
sysdate,
sysdate,
HES_Common.f_string_field('X', 1),
HES_Common.f_string_field('X', 2),
HES_Common.f_string_field('X', 3),
HES_Common.f_string_field('X', 4),
HES_Common.f_string_field('X', 5),
HES_Common.f_string_field('X', 6)
FROM dual
The above INSERT has been reduced down to bare minimum with the following error occurring :
HES_Common.f_string_field('X', 1),
ERROR at line 18:
ORA-02069: global_names parameter must be set to TRUE for this operation
SQL>
The abc_hesids table exists in database A and this insert is running in database B. A database link exists such that abc_hesids is a synonym for the table of the same name in database A.
I want Oracle to insert into the table in database A but use the package HES_Common in database B. I think this is possible but have not done this sort of thing for a while. Note : the package HES_Common exists in both databases A and B
Any ideas on how to get Oracle to use the local version of the package - do I have to get the DBA to change global_names to TRUE ??ORA-02069 global_names parameter must be set to TRUE for this operation
Cause: A remote mapping of the statement is required but cannot be achieved because GLOBAL_NAMES should be set to TRUE for it to be achieved.
Action: Issue ALTER SESSION SET GLOBAL_NAMES = TRUE if possible. -
How to Execute a Remote Procedure in Portal using Database Link
Hi,
I followed the instructions to create a Portal form for a remote procedure. But I am encountering the following error. Can someone advise what may be the cause?
Failed to execute - Missing string(create_package_body) language(us) domain (wwv) sub_domain (wwv_builder) (WWV-04300)
ORA-04020: deadlock detected while trying to lock object PUBLIC.PORTLET_SCHEMA (WWV-11230)
Failed to parse as PORTAL - (WWV-08300)
PURPOSE
How to execute a remote procedure in Portal using Database Link.
DESCRIPTION
This procedure assumes that you have two databases, one of which is remote, and Portal is configured in the other.
Remote Database A:
==================
1) Create a procedure as follows: Create or Replace PROCEDURE SCOTT.ADD_TWO_VALUES ( v_one IN NUMBER, v_two IN NUMBER, v_result OUT NUMBER) as begin v_result :=v_one+v_two; end; 2) Grant execute privileges to PUBLIC on the procedure.
Database B (where Portal is configured): ========================================
1) Create a public database link and choose to connect as a specific user (say SYSTEM). By default, in an Oracle 8i database, the "global_names" parameter in initSID.ora (or init.ora) file is set to "true". This Global Naming parameter enforces that a dblink has the same name as the database it connects to. Therefore, if the remote global database (A) name is "ora8.acme.com" then the database link should also be named as "ora8.acme.com".
2) Create a synonym for the procedure in Database A. Make sure you fully qualify the procedure name in the remote database (like SCOTT.ADD_TWO_VALUES).
3) Create a dynamic page to execute the procedure. The ORACLE tags in the dynamic page will look similar to the following: <ORACLE> DECLARE v_total NUMBER; BEGIN ADD_TWO_VALUES(:v_one,:v_two, v_total); htp.p('The total is => '); htp.p('<input type="TEXT" VALUE='||v_total||'>'); htp.para; htp.anchor('http://<machine.domain:port#>/pls/portal30/SCOTT.DYN_ADD_TWO_VALUES.show_parms', 'Re-Execute Procedure'); END; </ORACLE>
4) Portal does not have an option to create a form based on a synonym. Therefore, if you want to create a form instead of a dynamic page, create a wrapper procedure and then create a form based on this procedure. For example: Create or Replace PROCEDURE PORTAL30.ADD_TWO_VALUES_PR ( v_one IN NUMBER, v_two IN NUMBER, v_total OUT NUMBER) as begin add_two_values(v_one, v_two, v_total); end;
5) Grant execute privileges to PUBLIC on the procedure.hello...
any input will welcomed... Thanks..
Maybe you are looking for
-
Hi experts, I am saving all smartforms in one package. May be it could be a silly question but I saved my smartform in my package but when I am looking for my smartform it doesn't show in my package. Kindly tell me how can I see my smartforms in my p
-
My screen is not turning when I turn the iPad
My screen is not turning when I turn the iPad. I need help so if I turn my the screen should turn
-
HT1177 how to restore itunes library?
after reinstalling computer's system i can not restore the itunes library. in the capsule i can find specific song or album but dont find the way to the library. any body?
-
SCCM 2012 SP1 + WSUS + Server 2012 + SQL Server 2012
Hi all; I installed SCCM 2012 with Sp1 for my site server and everything is going well.. And than i installed the WSUS role on my Windows Server 2012 and SCCM 2012 SP1 it gave an error message which is "Fatal Error: The schema version of the database
-
Hello, I purchased an extra month of live voice guidance for MotionX GPS Drive (iPhone app) around two weeks ago and still have yet to be charged my 2.99. It was an in app purchase but still was used through iTunes on my iPhone. Is this some kind of