11gR2- webutil upload file to AS on two nodes RAC?
Hellow experts plz help with the following issue,
we are using 11gR2 forms on two node rac,webutil configured on both nodes. upload/download files to AS folder(UP_FILES) using our forms. node 2 is actually replica of node 1(forms,reports,UP_FILES). we are now facing a problem that the form which upload file to AS, only upload that to the node from where it is running say if it is running from node1 then it upload files to folder UP_FILES on that node( as the entry in webutil.cfg file) but we want that UP_FILES folder should be synced with each other on both nodes and a form running whether from node1 or node2 upload the file to both nodes at time.
How this will be accomplished?
--------webutil.cfg entry
transfer.appsrv.read.3=D:\UP_FILES
transfer.appsrv.write.3=D:\UP_FILES
-----FORM UPLOAD CODE
IF :CONTROL.FILE_LOC IS NOT NULL THEN
acyr3 := :CONTROL.TXTVOUCHERNO||'-'||acyr2 ;
FILE_RESULT := WEBUTIL_FILE_TRANSFER.CLIENT_TO_AS_WITH_PROGRESS(CLIENTFILE=>:CONTROL.FILE_LOC,
SERVERFILE =>'D:\UP_FILES\'||acyr3||'.PDF',
PROGRESSTITLE=>'UPLOAD TO DATABASE IN PROGRESS',
PROGRESSSUBTITLE=>'PLEASE WAIT' );
END IF;
--FORM DOWNLOAD CODE
FILE_RESULT := WEBUTIL_FILE_TRANSFER.AS_TO_CLIENT_WITH_PROGRESS
CLIENTFILE=>'D:\UP_FILES\'||acyr3||'.PDF',
SERVERFILE =>'D:\UP_FILES\'||acyr3||'.PDF',
PROGRESSTITLE=>'DOWNLOAD FROM DATABASE IN PROGRESS',
PROGRESSSUBTITLE=>'PLEASE WAIT'
CLIENT_HOST('rundll32.exe url.dll,FileProtocolHandler D:\UP_FILES\'||acyr3||'.PDF');
IF FILE_RESULT THEN
message('File downloaded successfully from the Application Server');
END IF;
Well, you're uploading the file to one node, so this is no surprise. What you can do is to store your file on a shared folder (which might be a bit tricky on windows) or synchronize a folder between your nodes. Unfortunately Forms can't access ASM directly (assuming you are using ASM), so you can't store your files directly in ASM where it would be accessible from both nodes.
cheers
Similar Messages
-
How to add a second database along with existing two node RAC environment
Hi,
I was wondering if anyone can help me with this.
My Environment:
1. Two node RAC Cluster database (11.2.0.2) with ASM running perfectly (Oracle Sid = test-1)
2. I have installed a second single instance db on node 2 (Oracle Sid = test-2) with NTFS file system for datafiles
3. Database is up and running, but I am not able to connect it from any client.
4. I am getting ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
5. Database (test2) is registered with grid LISTENER
5. TNSPING from client machine response is ok
Am I missing something here, happy to provide more info if requested.
Thanks,
PSC:\Users\root.test_prod>lsnrctl
LSNRCTL for 64-bit Windows: Version 11.2.0.2.0 - Production on 23-FEB-2012 11:58:05
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.2.0 - Production
Start Date 18-FEB-2012 19:51:47
Uptime 4 days 16 hr. 6 min. 24 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\app\11.2.0\grid\network\admin\listener.ora
Listener Log File C:\app\11.2.0\grid\log\diag\tnslsnr\IRIS11G-DB-2\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\LISTENERipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.30.0.202)(PORT=1520)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.30.0.215)(PORT=1520)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+asm2", status READY, has 1 handler(s) for this service...
Service "test-11gRAC.test_prod.internal" has 1 instance(s).
Instance "test-11gr2", status READY, has 1 handler(s) for this service...
Service "test-11gRXDB.test_prod.internal" has 1 instance(s).
Instance "test-11gr2", status READY, has 1 handler(s) for this service...
Service "irisapps.test_prod.internal" has 1 instance(s).
Instance "test-11gr2", status READY, has 1 handler(s) for this service...
Service "test-2" has 1 instance(s).
Instance "test-2", status READY, has 1 handler(s) for this service...
Service "test-2XDB" has 1 instance(s).
Instance "test-2", status READY, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL> service
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+asm2", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:1322 refused:0 state:ready
LOCAL SERVER
Service "test-11gRAC.test_prod.internal" has 1 instance(s).
Instance "test-11gr2", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:1829 refused:0 state:ready
LOCAL SERVER
Service "test-11gRXDB.test_prod.internal" has 1 instance(s).
Instance "test-11gr2", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: IRIS11G-DB-2, pid: 4496>
(ADDRESS=(PROTOCOL=tcp)(HOST=IRIS11G-DB-2.test_prod.internal)(PORT=57695))
Service "irisapps.test_prod.internal" has 1 instance(s).
Instance "test-11gr2", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:1829 refused:0 state:ready
LOCAL SERVER
Service "test-2" has 1 instance(s).
Instance "test-2", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "test-2XDB" has 1 instance(s).
Instance "test-2", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: IRIS11G-DB-2, pid: 9340>
(ADDRESS=(PROTOCOL=tcp)(HOST=IRIS11G-DB-2.test_prod.internal)(PORT=58653))
The command completed successfully
LSNRCTL> -
When we create one service as preferred on both nodes in two node RAC
How to configure listener,tnsnames.ora & listener file When we create one service as preferred on both nodes in two node RAC ... ( I don't need load balancing here but i just want to create service as preferred on both nodes)
please some one help me in this ..Thanks alot Sebastain for your reply..
I am using 10.2.0.4 version and below tns entry is from my client side tns entry ..
M4AMPRD_TEST=
(DESCRIPTION=
(ADDRESS= (PROTOCOL=TCP) (HOST=153.88.184.228) (PORT=1521))
(ADDRESS= (PROTOCOL=TCP) (HOST=153.88.184.229) (PORT=1521))
(FAILOVER=ON)
(CONNECT_DATA=(SERVICE_NAME=M4AMPRD_TEST)
(FAILOVER_MODE=
(TYPE=SELECT)
(METHOD=BASIC)
(RETRIES=20)
(DELAY=5)
service creation: srvctl add service -d M4AMPRD -s M4AMPRD_TEST -r M4AMPRD1,M4AMPRD2
But when i connect to database usign above service from client some times its working fine and some times its failing please see below log with timings how it is behaving ..
SQL> set time on
18:39:46 SQL> CONN m4owner/iamm4amdev!@M4AMPRD_TEST
Connected.
18:39:48 SQL> CONN m4owner/iamm4amdev!@M4AMPRD_TEST
ERROR:
ORA-12545: Connect failed because target host or object does not exist
Warning: You are no longer connected to ORACLE.
18:39:52 SQL> CONN m4owner/iamm4amdev!@M4AMPRD_TEST
Connected.
18:39:53 SQL> CONN m4owner/iamm4amdev!@M4AMPRD_TEST
Connected.
18:39:55 SQL> CONN m4owner/iamm4amdev!@M4AMPRD_TEST
Connected.
18:39:57 SQL> CONN m4owner/iamm4amdev!@M4AMPRD_TEST
ERROR:
ORA-12545: Connect failed because target host or object does not exist
Warning: You are no longer connected to ORACLE.
18:39:59 SQL> CONN m4owner/iamm4amdev!@M4AMPRD_TEST
Connected.
Thanks for your help in advance
Anil Vejendla.. -
Daily checklist maintainace activities for two node rac
i need queries for two node rac which i can check everyday maintainace
10.2.0.4
windows (os)
asm
please provide what do i do everyday for maintainace
please give me queries and check the health check
thanks in advanceHi;
pelase check below notes, you can see notes and can understand which process is important and what you need to check.
RAC Assurance Support Team: RAC and Oracle Clusterware Starter Kit and Best Practices (Generic) [ID 810394.1]
Master Note for Real Application Clusters (RAC) Oracle Clusterware and Oracle Grid Infrastructure [ID 1096952.1]
11gR2 Clusterware and Grid Home - What You Need to Know [ID 1053147.1]
Also see:
daily check list for rac
daily check list for rac
Regard
Helios -
CONVERTING TWO NODE RAC ON WINDOWS TO SINGLE INSTANCE
I got question about a two node RAC on Windows.
One of our vendors is hosting our oracle enviroment and we are planning to bring in the datacenter in house and manage it ourselves.
Current they have a two node RACon windows
The new enviroment we are building here , we want to get rid of RAC and bring it back to a single instance environment.
How do i approach this?
1. My first option was to create a new database server and do the export dp from one of the node and import to the new single instance enviroment.
My conncern is can you do export from RAC database and import it to a non RAC enviroment?
2. My second option is to delete one node on the two node RAC and then do export dump or cold backup and copy the database files and necessary config files.
let me know how i can approach this.....Okay guys after digging aroung i found the following approach.....
Cloning Oracle 10gR2 from RAC Environment to Single Instance Environment will raise the following error
ORA-29702: Error occurred in Cluster Group Service Operation.
The new instance is looking for CRS on new single instance non RAC environment.
For UNIX platform follow the following steps:
- Shutdown the instance which is cloned to non RAC.
- Shutdown all the listeners.
- Relink Oracle executable with rac_off option.
$ make -f ins_rdbms.mk rac_off
$ make -f ins_rdbms.mk ioracle
- Remove all the parameters from init.ora which points to second instance
and it is on other node.
- Remove cluster_database parameter
- Remove undo_tablespace parameter which points to second instance
For Windows Platform follow the following steps:
- Shutdown the instance which is cloned to non RAC.
- Shutdown all the listeners.
- Rename following file in %ORACLE_HOME%/bin directory: orarac10.dll to orarac10.dll.bak
Give me your thoughts, there is nothing on Metalink.... -
Hi We are in the process of converting single instance database(11gr2) supporting EBS 12.1.3 to 2 node RAC on RHEL. Which version of RHEL is better? if its 6.x then x?? The oracle document only says RHEL update 6.
thanks in advance.Hi,
Yes you can use any version but i recommend you to use 6.2
Also refer my post for RAC migration in EBS
Apps DBA Workshop: Using 11gR2 RAC with Oracle Applications R12.1.1
Hope this helps
thanks,
X A H E E R -
Mutliple serveres in a two node RAC
hello friends m i newbie in RAC and i have 7 servers in my company 4 are for oracle database used for different purposes having same instance name on each of them and 3 are for application servers used for different purposes having same instance name and i want to use two node RAC for all of them now my question is
1) can i use all the 7 servers (4 database and 3 application) together in a two node RAC?
2) in RAC can i have different instances having same name?
thanx in advancesaugat chatterjee wrote:
hello friends m i newbie in RAC and i have 7 servers in my company 4 are for oracle database used for different purposes having same instance name on each of them and 3 are for application servers used for different purposes having same instance name and i want to use two node RAC for all of them now my question isRAC is a single database running across multiple servers (db instance on each). That is how Oracle scales.
Oracle does not scale the converse way - running multiple databases on a single server.
1) can i use all the 7 servers (4 database and 3 application) together in a two node RAC?That depends entirely on whether the 2 severs have the capacity to deal with the processing load currently handled by the database servers.
Also note that in Oracle the terms "+database+" and "+schema+" differ from what are used by some other RDBMS products.
An Oracle database is a physical entity. An Oracle schema is a (amongst other things) a logical database. So a single physical Oracle database can contain 1000's of logical databases - and these logical databases can be physically separated from one another (via tablespaces), can have different rights, can have different resource profiles, etc.
Each RAC node is part of a shared everything cluster - meaning that the entire physical database is available on each and every RAC node.
On RAC, you can do what is called application partitioning. You can for example configure HR clients to make use of the HR logical database (schema) on RAC node 1. RAC node 3 is for example used for the Data Mart application and node 2 handles the customer billing clients.
In other words, you partition your applications across RAC nodes.
2) in RAC can i have different instances having same name? The instance name is a physical name and should very seldom be explicitly used. Your physical RAC database's SID may be PROD. Your 4 RAC instances, one on each server, will have SIDs PROD1 to PROD4.
But you should instead create database services and have clients connect (via the RAC's SCAN/Single Client Access Name) to a specific service.
Bottom line to keep in mind - RAC is Oracle's answer to scalability. And RAC is multiple servers and a single database. Doing the converse and running multiple database on a single server (RAC or no RAC), very seldom makes any technical sense. It almost always will reduce both performance and scalability. -
How do i licence a two node RAC with ASM infrastructure
AM trying to estimate the licensing of two node RAC with ASM as storage manager and GRID control as management tool
Hi,
Oracle license depends on lot of things, Edition of Oracle your running standard or enterprise, the optional packges you need and etc.
Read through http://docs.oracle.com/cd/E11882_01/license.112/e10594/editions.htm#BABDJGGI
also if you license named users or processor. You can get the price for the from online oracle store
https://oraclestore.oracle.com/OA_HTML/ibeCCtdMinisites.jsp?language=US&ref=ibeCZzpHome.jsp -
OCR and Votinging Disk File Permissions for NFS 2 node RAC cluster
This is a fresh reinstall of Oracle 11gR2 Clusterware on Red Hat Enterprise Linux 64bit and I'm using NFS as my shared storage.
I've create three file systems /ocrVote01 /ocrVote02 and /ocrVote03 as NFS share and exported them to two nodes that will use them as shared OCR and Voting Disk. Currently I'm getting errors when I run root.sh
I've done the following:
chown rac:dba -R /ocrVote01 /ocrVote02 /ocrVote03
It appears that the root.sh script is trying to create a directory /ocrVote01/storage and getting permissions denied.
Any idea why Root can not create this directory?
root.sh is also getting error permission denied at /u01/gridinfra/11.2.0/GI/crs/install/crsconfiglib.pm at line 4478
Any Ideas on what file permissions should be set for /ocrVote01 /ocrVote02 and /ocrVote03 ?
Thanks
32352 close(3) = 0
32352 write(2, "mkdir /ocrVote01/storage/: Permi"..., 112) = 112
| 00000 6d 6b 64 69 72 20 2f 6f 63 72 56 6f 74 65 30 31 **mkdir /o crVote01** |
| 00010 2f 73 74 6f 72 61 67 65 2f 3a 20 50 65 72 6d 69 /storage /: Permi |
| 00020 73 73 69 6f 6e 20 64 65 6e 69 65 64 20 61 74 20 ssion de nied at |
| 00030 2f 75 30 31 2f 67 72 69 64 69 6e 66 72 61 2f 31 /u01/gri dinfra/1 |
| 00040 31 2e 32 2e 30 2f 47 49 2f 63 72 73 2f 69 6e 73 1.2.0/GI /crs/ins |
| 00050 74 61 6c 6c 2f 63 72 73 63 6f 6e 66 69 67 5f 6c tall/crs config_l |
| 00060 69 62 2e 70 6d 20 6c 69 6e 65 20 34 34 37 38 0a ib.pm li ne 4478. |
32352 exit_group(25) = ?After reading OTN feedback, which is very much appreciated. I decided to look deeper into my NFS configuration and found that the /etc/exports had the incorrect configuration for shared disk where in root can make appropriate changes to voting disk and crs files. The correct configuration for /etc/fstab using NFS for shared storage for voting disk and CRS:
192.168.1.21:/ocrVote01 /ocrVote01 nfs rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,vers=3,timeo=600,actimeo=0 1 2
192.168.1.21:/ocrVote02 /ocrVote02 nfs rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,vers=3,timeo=600,actimeo=0 1 2
192.168.1.21:/ocrVote03 /ocrVote03 nfs rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,vers=3,timeo=600,actimeo=0 1 2 -
Can fiber channel be used for connect server to a storage in two nodes RAC
I decided to have an Oracle RAC cluster with only two nodes.
The storage I have is a sun 3510FC. Also have five fiber chanal ports. But my each server (Sunfire v240) has got one Ultra160SCSI multimode (SE/LVD) not any fiber chanal ports. I found that there is some FC card available to use but none fiber switch available. I want to install this FC cards to the servers and make a straight connection with fibre cable to the storage. Can this be asolution or do i have to have a fibre switch?Hi
Irrespective of whether such a configuration is supported or not by Oracle.
Has anybody got 10gR2 RAC working on
a. 2 servers
b. shared storage with HBA and fibre channel cables
c. interconnect on LAN
(yes we know it is not supported by Oracle...but again we are not going production on that....just for demo/training purposes)
No FC switch
No ethernet switch
If anybody has got this working would be great to hear of 'issues to guard against'
Thanks -
Configure OEM in Oracle 10.2.0.4 Two nodes RAC
Hi all,
I'm having some troubles making rigth configuration for OEM in my RAC.
Everything during installation or configuracion seems ok but later it's all wrong.
The point is:
Global database is ON and every of two nodes is also ON. I can accees it from inside and outside the server nodes.
CRS shows everything OK with all services and resources ONLINE.
emctl status dbconsole -clusterhttps://node2:5500/em/console/aboutApplication
EM Daemon is running.
emca -displayConfig dbcontrol -clusterINFO:
**************** Current Configurationl ****************
INSTANCE NODE DBCONTROL_UPLOAD_HOST
inode2 node2 node2
inode1 node1 node2
So everything should be OK
When I try to access OEM, it says that status can't be acess and offers me the choice of START or BEGIN RECOVER
When I go through START the two nodes are up but can't access the instances.
So I know that something has wrong configuracion but I don't know WHAT!!!
Any Idea???
Thanks in advanceStart looking at the logs under $OH/<node_name>/sysman/log - most likely it will offer some clues.
-
WEBUTIL upload file to blob and save a file in database harddisk
Dear all,
Webutil have a file upload from client to blob.
It can run smoothlly.
My problem is, how to download my file on the blob into a file in database harddisk.
For your information, my file is DBF data file.
Pls help me.
Best regards
Jansen HutagalungWhy do you try with BFILE type?
-
WEBUTIL: Uploading files with arabic file names to a BLOB column in DB
Hi
I'm using webutil (webutil_file_transfer.client_to_db_with_progress)
to store files in a blob field in a 9i database, I'm doing that using forms 9i.
I'm successful in storing files with English names in the database, however if I want to store a file with an arabic file name , it doesn't get uploaded and the BLOB is empty. Is there any work around to solve this problem.
I tried renaming the arabic file name to an english file name then uploading which was fine, but when I try to rename the file back to arabic, this step fails. I asked a friend and he said that although I'm renaming the file back to arabic in a statment after uploading, that doesn't mean that the upload has finished, i.e the file is still locked for upload that's why I can't rename it back to arabic, I can't rename it even if I try that directly from the operating system.
can anyone help in solving this problem!!
RegardsHi
I'm using webutil (webutil_file_transfer.client_to_db_with_progress)
to store files in a blob field in a 9i database, I'm doing that using forms 9i.
I'm successful in storing files with English names in the database, however if I want to store a file with an arabic file name , it doesn't get uploaded and the BLOB is empty. Is there any work around to solve this problem.
I tried renaming the arabic file name to an english file name then uploading which was fine, but when I try to rename the file back to arabic, this step fails. I asked a friend and he said that although I'm renaming the file back to arabic in a statment after uploading, that doesn't mean that the upload has finished, i.e the file is still locked for upload that's why I can't rename it back to arabic, I can't rename it even if I try that directly from the operating system.
can anyone help in solving this problem!!
Regards -
I use webutil_file_transfer.Client_To_AS_With_Progress(
c:\temp\mytxt.txt,
'\\192.234.43.233\d$\myFolder'
,'Upload to Application Server in progress'
,'Please wait'
,false
,null);
but I can't upload the file it always returns boolean falseSince you are uploading to the server, the Forms user account must have privileges to write files on the server. This is the most common cause of a failed upload. Double-check with your system admins and make sure the Forms user account has sufficient privs.
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Hi All,
Hope you are fine, here same.
According to my daily activities i use to check alert log file, db growth etc etc...
number of end users on both nodes..
Problem:
I use to check number of end users on both nodes i.e
SQL> select inst_id, count(*) from gv$session group by inst_id
INST_ID COUNT(*)
1 295
2 301
Today morning when i check the same query i see
INST_ID COUNT(*)
2 301
both nodes are working as when i connect from sql
username/password@hisp1 (sessions=290)
username/passowrd@hisp2 (sessions=301)
no errors reported in alert_log file of both nodes.
Thanks in advance
Mohammed Amer AliDear
As i have said above.
Its true that those sessions-on-the-second-node aren't populated on first node and vice versa.
Its like v$instance where i have given gv$instance.
more elaboration
when i query gv$session_waits, gv$session etc
all this views work as v$session ,.......
Might be the problem of services(daemons). what i think?
like cluster services etc.
I ran #./crs_stat -t
#./ctsctl stat -t
It thorows a message like ./crsctl: No such file or directory.
but it does not work on my system...
Thanks,
Mohammed Amer Ali.
Maybe you are looking for
-
How can i get report of Vendor balance depending on business area? Moderator: Please, avoid asking basic questions
-
Change the height of a paragraph break while using a 12pt baseline grid
Hey all, I am laying out a newsletter – and I want to tighten up the layout a bit. Currently the body text is 9pt on 12pt leading as the baseline grid is 12pt. I think the gap between the paragraphs is too much, and I want to reduce the height.(This
-
Just attempted to back-up my iTunes inventory to DVD-RW media. The drive takes in the disc, then spits it out a moment later. The media is DVD-RW 4X. Is this the incorrect spec for my super drive? The iMac is 15" G4, 800 Mhz. The super drive is pione
-
V1 631 - You cannot enter new delivery costs
Recently we upgraded from 4.6C to ERP 2005 ECC 6.0.Since the upgrade, we have noticed an issue in ME22N. Once you perform invoice verification on a purchasing document, you can not add any new conditions or change any existing conditions. You get mes
-
System Command Process types!
Hi What this process type(System Command) does?? Is it related to change the file read write acess or wat?? any idea.. 10zin