Down the listener and Down the nodes
Dear All
I am beginner to use Oracle 11g.
At all nodes, vital for the listener to create a report,
I want to create an SQL statement to output the following items.
• Down the listeners
Apart from the above SQL and,
all nodes in order to create a life and death report database,
I want to create an SQL statement to output the following items.
• Down the nodes
I will grad to send coomment.
Thanks you.
Dear sb92075, Dear All
Thank you for sending reply.
I have a question about your reply.
Dear All
I am beginner to use Oracle 11g.
At all nodes, vital for the listener to create a report,
I want to create an SQL statement to output the following items.
• Down the listeners
Oracle RDBMS does not require any listener & has NO knowledge whether any listener exists or not.So,I want to explain the reasons mentioned above to a third party,
If points are documented in Oracle, Would you please tell me?
Apart from the above SQL and,
all nodes in order to create a life and death report database,
I want to create an SQL statement to output the following items.
• Down the nodes
********************************************when you pull the plug on a DB Server, no record exists; but the node goes DOWN.in the same way,
If points are documented in Oracle, Would you please tell me?
I will grad to reply coomment.Thanks and regards.
Edited by: Michel on 2011/12/20 5:23
Similar Messages
-
Database Connectivity takes long time if one of the Node is down .. ??
Hello All,
Env: 10.2.0.4 on Solaris 10
I have 2 nodes.
When Node1 server is down, it takes long time to connec to the database.
tnsping would give "OK(2050ms)". Below is the tnsalias.
RAC_test =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST=20.268.169.123)(PORT= 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST=20.268.169.127)(PORT= 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVICE_NAME = DK.com)
(FAILOVER_MODE =
(TYPE = SELECT)
(METHOD = BASIC)
(RETRIES = 180)
(DELAY = 5)
)I put the trace on sqlnet.ora and found that first it pings to the "20.268.169.123",
since the Server is down there will not be any reply and this consumes the delay and
later it would ping "20.268.169.127" and connect to it.
If i keep "20.268.169.127" above "20.268.169.123" in tnsalias, and keep "LOAD_BALANCE=no",
it gets connected very fast, as its directly connecting to Node2. In tnsping i get Ok(40ms).
How do i reduce the connect timing if i use the first step. Why does it take long time for
Oracle Client to understand that the Node1 Server is down ?
TIA,
J JI hope the IP's you are using in the TNS are Virtual IP's.
You must use Virtual IP's / hostnames for the failover to be quick. If Node 1 is not available then then it's (Node 1's) virtual IP would also get assigned to Node 2 hence all client connections are still able to get a response from the Node Virtual IP address without needing to wait for TCP/IP timeouts. This helps clients to get notified immediately that node 1 is unavailable and the connection tries the 2nd ip/host in the connect descriptor.
Hope this helps.
- Siba -
Backing up the RAC DB when either one of the node is down
11.2.0.2/Solaris 10 (x86-64bit) For our 2-Node production RAC DB, I had configured RMAN backup from Node1 using Cronjob. Last weekend our Node1 went down. Our SMS notifying system which sends SMS alerts to our Mobiles went down on the weekend as well. Only by Monday Noon we came to know that Node1 is down and that there is no backup for Saturday and Sunday.
How can i make sure that RMAN backup of the DB will be taken even if either one of the Nodes go down ? My friend suggested IBM TWS scheduler. Can Tivoli Work Scheduler detect a dead RAC Node and fire RMAN backup from the surviving node ?I don't know the answer regarding TWS, but if you run the backup from crontab I guess that you don't have any 3rd party tool now.
I think the easiest solution will be to have the script and crontab job on both servers and decide which one runs the backup.
For example, the script that is scheduled in the crontab will do:
1. if $HOSTNAME is node1 run the backup. If $HOSTNAME is node2, check if node1 is up and if not run the backup.
2. This is more elegant, check the "crsctl status resource" for something and run the backup accordingly. For example, the script will check where SCAN1 VIP is located and this is the node which will run the backup.
HTH
Liron -
Listener and gsd are unknown, what is the reason
I just install 10g RAC on linux, everything was good. However, I shutdowned the whole system and started it again,
my listener and gsd are unknown, what is the reason?
rac1-> crs_stat -t -v
Name Type R/RA F/FT Target State Host
ora.devdb.db application 0/1 0/1 ONLINE ONLINE rac1
ora....b1.inst application 0/5 0/0 ONLINE ONLINE rac1
ora....b2.inst application 0/5 0/0 ONLINE ONLINE rac2
ora....SM1.asm application 0/5 0/0 ONLINE ONLINE rac1
ora....C1.lsnr application 0/5 0/0 ONLINE UNKNOWN rac1
ora.rac1.gsd application 0/5 0/0 ONLINE UNKNOWN rac1
ora.rac1.ons application 0/3 0/0 ONLINE ONLINE rac1
ora.rac1.vip application 0/0 0/0 ONLINE ONLINE rac1
ora....SM2.asm application 0/5 0/0 ONLINE ONLINE rac2
ora....C2.lsnr application 0/5 0/0 ONLINE UNKNOWN rac2
ora.rac2.gsd application 0/5 0/0 ONLINE UNKNOWN rac2
ora.rac2.ons application 0/3 0/0 ONLINE ONLINE rac2
ora.rac2.vip application 0/0 0/0 ONLINE ONLINE rac2
rac1-> srvctl start listener -n rac1
CRS-1028: Dependency analysis failed because of:
CRS-0223: Resource 'ora.rac1.LISTENER_RAC1.lsnr' has placement error.
rac1-> srvctl start listener -n rac2
CRS-1028: Dependency analysis failed because of:
CRS-0223: Resource 'ora.rac2.LISTENER_RAC2.lsnr' has placement error.
rac1-> tail -30 alert_+ASM1.log
SUCCESS: diskgroup RECOVERYDEST was mounted
Wed Aug 31 17:24:48 2011
NOTE: recovering COD for group 2/0xc8787a38 (RECOVERYDEST)
SUCCESS: completed COD recovery for group 2/0xc8787a38 (RECOVERYDEST)
Wed Aug 31 17:25:01 2011
Starting background process ASMB
ASMB started with pid=17, OS id=6498
Wed Aug 31 17:28:07 2011
NOTE: ASMB process exiting due to lack of ASM file activity
Wed Aug 31 17:29:00 2011
Reconfiguration started (old inc 1, new inc 2)
List of nodes:
0 1
Global Resource Directory frozen
Communication channels reestablished
Master broadcasted resource hash value bitmaps
Non-local Process blocks cleaned out
Wed Aug 31 17:29:01 2011
LMS 0: 0 GCS shadows cancelled, 0 closed
Set master node info
Submitted all remote-enqueue requests
Dwn-cvts replayed, VALBLKs dubious
All grantable enqueues granted
Wed Aug 31 17:29:01 2011
LMS 0: 43 GCS shadows traversed, 0 replayed
Wed Aug 31 17:29:01 2011
Submitted all GCS remote-cache requests
Post SMON to start 1st pass IR
Fix write in gcs resources
Reconfiguration complete
rac1-> tail -30 alert_devdb1.log
Communication channels reestablished
Master broadcasted resource hash value bitmaps
Non-local Process blocks cleaned out
Wed Aug 31 17:29:35 2011
LMS 0: 0 GCS shadows cancelled, 0 closed
Set master node info
Submitted all remote-enqueue requests
Dwn-cvts replayed, VALBLKs dubious
All grantable enqueues granted
Wed Aug 31 17:29:35 2011
LMS 0: 3118 GCS shadows traversed, 1733 replayed
Wed Aug 31 17:29:35 2011
Submitted all GCS remote-cache requests
Post SMON to start 1st pass IR
Fix write in gcs resources
Reconfiguration complete
Wed Aug 31 17:31:25 2011
Shutting down archive processes
Wed Aug 31 17:31:30 2011
ARCH shutting down
ARC2: Archival stopped
Wed Aug 31 17:40:11 2011
db_recovery_file_dest_size of 1500 MB is 14.40% used. This is a
user-specified limit on the amount of space that will be used by this
database for recovery-related files, and does not reflect the amount of
space available in the underlying filesystem or ASM diskgroup.
Wed Aug 31 22:00:14 2011
Thread 1 advanced to log sequence 3
Current log# 2 seq# 3 mem# 0: +DG1/devdb/onlinelog/group_2.262.760635995
Current log# 2 seq# 3 mem# 1: +RECOVERYDEST/devdb/onlinelog/group_2.258.760635997add an entry in on both the nodes /etc/sysconfig/network DEFAULT_GATEWAY
eg:-
[oracle@rac1 ~]$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=rac1.localdomain
DEFAULT_GATEWAY=192.168.1.10
and try to start the service.
if you would like refer:-http://oracleinstance.blogspot.com/2009/12/crs-0215-could-not-start-resource.html -
Service not registered with listener on one of the nodes?
We have an 11.2.0.1 oracle RAC with 2 nodes. Recently the listener died on node 1 and after a manual startup it seems like the service doesn't register with the listener on this node.
Here's what statusing the listener on both nodes shows:
[oracle@db01]$ $GRID_HOME/bin/lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 17-NOV-2010 12:27:49
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 17-NOV-2010 07:14:40
Uptime 0 days 5 hr. 13 min. 9 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/db01/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.128.4)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.128.14)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM1", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@db02 ~]$ $GRID_HOME/bin/lsnrctl status listener
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 17-NOV-2010 12:30:08
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 17-NOV-2010 07:14:40
Uptime 0 days 5 hr. 15 min. 28 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/db02/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.128.5)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.128.15)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM2", status READY, has 1 handler(s) for this service...
Service "prd1.somehost.net" has 1 instance(s).
Instance "prd12", status READY, has 1 handler(s) for this service...
Service "prd1XDB.somehost.net" has 1 instance(s).
Instance "prd12", status READY, has 1 handler(s) for this service...
The command completed successfully
The prd12 instance shows as registered with the listener on db02 but the prd11 doesn't on db01. Right now all connections are routed to the prd12 instance. Also trying to connect to prd11 manually returns "ORA-12505: TNS:listener does not currently know of SID given in connect descriptor". The prd11 instance is actually running and I can connect to it locally via 'sqlplis "/ as sysdba"' but not via 'sqlplus user/pass@prd1'. I'm wondering what went wrong and how to register the prd11 with the listener on db01.
Here's some more information
[oracle@db01 ~]$ $GRID_HOME/bin/srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node db02
SCAN Listener LISTENER_SCAN2 is enabled
SCAN listener LISTENER_SCAN2 is running on node db01
SCAN Listener LISTENER_SCAN3 is enabled
SCAN listener LISTENER_SCAN3 is running on node db01
[oracle@db01 ~]$ $GRID_HOME/bin/srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node db02
SCAN VIP scan2 is enabled
SCAN VIP scan2 is running on node db01
SCAN VIP scan3 is enabled
SCAN VIP scan3 is running on node db01
[oracle@db01 ~]$ $GRID_HOME/bin/srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is running on node(s): db01,db02
Thanks in advance,
Nick
Edited by: user639426 on Nov 17, 2010 4:44 AMSeems like the LISTENER_SCAN2 and LISTENER_SCAN3 are running on node 1 but still I can't status them
[oracle@db01 ~]$ ps -ef | grep tns
oracle 6227 31486 0 08:24 pts/1 00:00:00 grep tns
oracle 18049 1 0 Nov17 ? 00:00:20 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit
oracle 18120 1 0 Nov17 ? 00:00:16 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN2 -inherit
oracle 18131 1 0 Nov17 ? 00:00:05 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN3 -inherit
[oracle@db01 ~]$ $GRID_HOME/bin/lsnrctl status LISTENER_SCAN2
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 19-NOV-2010 08:25:11
Copyright (c) 1991, 2009, Oracle. All rights reserved.
TNS-01101: Could not find service name LISTENER_SCAN2
[oracle@db01 ~]$ $GRID_HOME/bin/lsnrctl status LISTENER_SCAN3
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 19-NOV-2010 08:25:18
Copyright (c) 1991, 2009, Oracle. All rights reserved.
TNS-01101: Could not find service name LISTENER_SCAN3
/u01/app/11.2.0/grid/network/admin/listener.ora contents:
LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2)))) # line added by Agent
LISTENER_SCAN3=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3)))) # line added by Agent
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN3=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON # line added by Agent
/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora contents:
PRD1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = prdcluster-scan)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = prd1.somehost.net)
Everything worked just fine for quite some time until I found the listener down one morning and started it up manually. I wonder if I didn't start up the processes correctly. I did:
$GRID_HOME/bin/srvctl stop scan_listener
$GRID_HOME/bin/srvctl stop scan
$GRID_HOME/bin/srvctl stop listener
$GRID_HOME/bin/srvctl start listener
$GRID_HOME/bin/srvctl start scan
$GRID_HOME/bin/srvctl start scan_listener
Is this the correct way of starting up the listener processes?
Nick -
Listener and Database shown as down on AV Console
Hi,
I have Oracle Audit Vault 10.2.3.2 on RH5 and I'm experiencing the following problem. The db instance, the listener and the av service is up and running. While i'm trying to access the http://<hostname>:5700/av, the db and the listener appeared as down. Any ideas why?
Thank you.Thanks but it still does not clear up the confusion. Here are the two mutually inconsistent statements:
The db instance, the listener and the av service is up and running.and
the db and the listener appeared as down.they can not both be true.
Please explain and show us on what basis one or both of these conclusions was reached. -
Start the node manager and rerun the command
Seeing the following in weblogic server log. When will I get this error? And how to retun node manager ?
The node manager at host ....and port 5555 seems to be down. Start the node manager and rerun the command.You will get this message when the machine's NodeManager was not started.
Take a look at the following links to see how to install and start the Node Manager:
http://e-docs.bea.com/wls/docs81/adminguide/nodemgr.html#1150128
http://e-docs.bea.com/wls/docs81/adminguide/confignodemgr.html#1142955 -
Query regarding the Node manager configuration(WLS and OAM Managed server)
Query regarding the Node manager configuration(WLS and OAM Managed server):
1) In the nodemanager.properties I have added the ListenAddress:myMachineName and ListenPort: 5556
My setup : One physical Linux machine(myMachineName) has : WLS admin server, managed server(OAM 11G) and nodemanager.No clustered environment.
2) nodemanager.log has the following exception when I start the oam_server1 using EM(Enterprise Manager11g):
Mar 23 2012 1:39:55 AM> <SEVERE> <Fatal error in node manager server>
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:336)
at java.net.ServerSocket.bind(ServerSocket.java:336)
at javax.net.ssl.impl.SSLServerSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.<init>(ServerSocket.java:202)
at javax.net.ssl.SSLServerSocket.<init>(SSLServerSocket.java:125)
at javax.net.ssl.impl.SSLServerSocketImpl.<init>(Unknown Source)
at javax.net.ssl.impl.SSLServerSocketFactoryImpl.createServerSocket(Unknown Source)
Default port on which node manager listen for requests is localhost:5556.I have changed it to point to my machine. The port should be of WLS admin server or it should be the managed server port?
3) I have started the NodeManager using the startNodeManager.sh script.
4) The admin server port is 7001 and the oam managed server port is 14100.
Any inputs on what might be wrong in the setup will be helpful.Thanks !By using netstat -anp|grep 5556 you can check which process on your machine is using the 5556 port.
-
Setting the listener and tnsnames.ora
Hi,
I have two node cluster database 10.2.0.4 on Linux. Someone messed up with the tnsnames file and also the local,remote listener setting are gone during the switchover.
Now I just want to replace the new tns entries,listener entries, set the local/remote listener and then register the local/remote listener. During these changes it will not affect the applications, but just want to know is there any specific steps which I have to keep in mind.
Thank you.
Edited by: 936264 on May 23, 2012 8:52 AMHi
Did you not back them up? :-)
The answer to your question is yes. Basically, you need your listener referenced in the listener.ora for each node, then you need to reference those listeners in your tnsnames.ora - one for your local listener and another for your remote listener. A good starting point will be what you've got in your LOCAL_LISTENER and REMOTE_LISTENER parameter - that will show the names of the entries you need to create in the tnsnames.ora. I have all entries in the listener.ora and tnsnames.ora on both nodes just for simplicity but you don't have to do that.
Any idea what port you used for your listener? The default 1521?
A couple of examples from my test system:
listener.ora (we use port 1550 by the way):
LISTENER_DEVDB_NODE1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1550)(IP = FIRST))
(ADDRESS = (PROTOCOL = TCP)(HOST = node1)(PORT = 1550)(IP = FIRST))
tnsnames.ora
LISTENER_DEVDB_NODE1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1550)(IP = FIRST))
LISTENER_DEVDB_NODE2 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = node2-vip)(PORT = 1550)(IP = FIRST))
LISTENERS_DEVDB =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1550)(IP = FIRST))
(ADDRESS = (PROTOCOL = TCP)(HOST = node2-vip)(PORT = 1550)(IP = FIRST))
So our local listener is LISTENER_DEVDB_NODEn for each and REMOTE_LISTENER is LISTENERS_DEVDB on each node.
Hope that helps. Any further questions let me know....
cheers,
Mark
orabackus.wordpress.com -
Is there a way to "mix" the nodes and leaves of the tree so that even if they are at the same level (1,2,3...), they will display in a specified order (via sort sequence, alphabetical, etc.).
History:
We are using the Tree UI element to display/manage a material bom interface. We seem to be running into an issue with displaying the nodes/leaves of the tree.. regardless of the order that the context is built (which is currently the order of the exploded BOM from from CS_BOM_EXPL_MAT_V2), the bom is displayed with the nested boms at the top of each level and the single materials below them. For example. If TK1 contains Material1, Material2, Material3, Kit1(containing component1, comp2, comp3), Material4, Kit2(containing comp4, comp5, comp6), and Material5 (in this order), the tree will display with the A level node as TK1, the next node as Kit1 (with its subleaves of comp1,comp2,comp3), Kit2(with subleaves of comp4,comp5,comp6), THEN Material1, material2, material3, material4, material5. Our users are adamant about the items displaying in the correct order (which should be alphabetical based on the description for one report and by location for purposes of inventory for another). I've searched but not been able to locate a similar question. If I've missed it, please point me in the right direction. The users want the tree, not a "tree" table. This is our first attempt at the tree, so maybe we're missing something basic?
TK1
-Mat1
-Mat2
-Mat3
-Kit1
--Comp1
--Comp2
--Comp3
-Mat4
-Kit2
--Comp4
--comp5
--comp6
-Material5
displays as
TK1
-Kit1
--Comp1
--Comp2
--Comp3
-Kit2
--Comp4
--Comp5
--Comp6
-Mat1
-Mat2
-Mat3
-Mat4
-Mat5co-workers said example picture is misleading.. we can make the order work if everything is a "folder" but not a mix of "folders" and "files" (if making a visual reference to the windows browser). i.e - a file is represented as an empty folder.
TK1
. Mat1
. Mat2
. mat3
> kit1
.. comp1
.. comp2
.. comp3
. mat4
> kit2
.. comp4
.. comp5
.. comp6
. mat5
displays at
TK1
> kit1
.. comp1
.. comp2
.. comp3
> kit2
.. comp4
.. comp5
.. comp6
. mat1
. mat2
. mat3
. mat4
. mat5
we can make it work if everything is a folder. This is our current workaround.
TK1
> mat1
> mat2
> mat3
v kit1 (when expanded)
.. comp1
.. comp2
.. comp3
> mat4
> kit2 (when not expanded)
> mat5 -
Sort the Nodes and remove duplicate nodes
Hello Experts,
I have a requirement to sort the nodes based on a key value.
e.g.
<Node>
<Key>2<Key>
<Value1>name1<Value1>
<Value2>email1<Value2>
</Node>
<Node>
<Key>1<Key>
<Value1>name2<Value1>
<Value2>email2<Value2>
</Node>
<Node>
<Key>2<Key>
<Value1>name3<Value1>
<Value2>email3<Value2>
</Node>
and the Output should be
<TNode>
<Key>1<Key>
<Value1>name2<Value1>
<Value2>email2<Value2>
</TNode>
<TNode>
<Key>2<Key>
<Value1>name3<Value1>
<Value2>email3<Value2>
</TNode>
I tried using SortByKey function for Node i.e.
Key --> SortByKey , Node --> TNode
But I dont get sorted value for Value1 and Value2.
Can anybody give solution for this?
I have around 25000 records as input and there are around 25 values in structure.
Please help.
Thanks in advance,
Beena.Beena,
Here you go. If it doesn't helps then let me know.
Mapping.
http://www.flickr.com/photo_zoom.gne?id=2185600055&size=o
http://www.flickr.com/photo_zoom.gne?id=2185600049&size=o
http://www.flickr.com/photo_zoom.gne?id=2185600063&size=o
http://www.flickr.com/photo_zoom.gne?id=2185600067&size=o
Results
http://www.flickr.com/photo_zoom.gne?id=2185600075&size=o -
Hi there, Will be possible listen and charge at the same time my iPod shuffle in my car?
Hi there, Will be possible listen and charge at the same time my iPod shuffle in my car? I have got a jack going to my sound system the issue i would like to solve is charging at the same time
Since the shuffle (except for the 1st gen shuffle) uses the same "port" (the headphones jack) for sound output and charging, there is no way to do both concurrently.
NOTE: You can charge and play at the same time on the old white 1st gen shuffle that looks like a USB flash drive. -
Xsl:copy-of and derefencing the node
Hi,
I am a newbie so please bear with me. In my XML, I have
meta-data which references data. For example, my XML looks
as shown:
<CONTAINERS>
<CONTAINER>
<PRE_HTML>DEPT_PREHTML</PRE_HTML>
<TITLE>Departments</TITLE>
<POST_HTML>DEPT_POSTHTML</POST_HTML>
</CONTAINER>
<CONTAINER>
<PRE_HTML>EMP_PREHTML</PRE_HTML>
<TITLE>Employees</TITLE>
<POST_HTML>EMP_POSTHTML</POST_HTML>
</CONTAINER>
</CONTAINERS>
So, every container has a PRE_HTML and POST_HTML element
which references other nodes in my XML. For example, the
Departments container references the DEPT_PREHTML and
DEPT_POSTHTML nodes. The DEPT_PREHTML and DEPT_POSTHMTL
nodes look as shown:
<DEPT_PREHTML>
<DIV id="Layer1" style="position: absolute"
<IMG src="/images/edu.gif" width="917" height="104"/>
</DIV>
</DEPT_PREHTML>
<DEPT_POSTHTML>
<!-- Some more well formed HTML. -->
</DEPT_POSTHTML>
Similarly, EMP_PREHTML and EMP_POSTHTML contain well formed
HTML.
In my XSL, I would like to iterate through each of the
containers and spit out the well formed HTML which is sitting in
the respective PRE_HTML and POST_HTML nodes. However, I am
not having any luck dereferencing the node name that is the
value of an element. In the XSL, I am using the xsl:copy-of
to spit out the node specified by the PRE_HTML and POST_HTML
elements of the CONTAINER. But, this does not work. The XSL
looks as shown below:
<xsl:template match="/CONTAINERS">
<xsl:for-each select="CONTAINER">
<xsl:copy-of select="PRE_HTML"
<xsl:apply-templates select="*|@*|text()"/>
</xsl:copy-of>
<!-- Do some more things here -->
<xsl:copy-of select="POST_HTML"
<xsl:apply-templates select="*|@*|text()"/>
</xsl:copy-of>
</xsl:for-each>
</xsl:template>
Can you guys shed some light on this? How do I spit out
the well formed HTML sitting in various nodes that are
referenced by the PRE_HTML and POST_HTML elements?
Thanks in advance,
Sanjay
nullIn my previous post, the XSL was little bit erroneous.
Here is the XSL that I am using:
<xsl:template match="CONTAINERS">
<xsl:for-each select="CONTAINER">
<xsl:copy-of select="//*[name(.)=current()/PRE_HTML]"/>
<!-- Do some more things here -->
<xsl:copy-of select="//*[name(.)=current()/POST_HTML]"/>
</xsl:for-each>
</xsl:template>
Thanks,
Sanjay
Sanjay Saxena (guest) wrote:
: Hi,
: I am a newbie so please bear with me. In my XML, I have
: meta-data which references data. For example, my XML looks
: as shown:
: <CONTAINERS>
: <CONTAINER>
: <PRE_HTML>DEPT_PREHTML</PRE_HTML>
: <TITLE>Departments</TITLE>
: <POST_HTML>DEPT_POSTHTML</POST_HTML>
: </CONTAINER>
: <CONTAINER>
: <PRE_HTML>EMP_PREHTML</PRE_HTML>
: <TITLE>Employees</TITLE>
: <POST_HTML>EMP_POSTHTML</POST_HTML>
: </CONTAINER>
: </CONTAINERS>
: So, every container has a PRE_HTML and POST_HTML element
: which references other nodes in my XML. For example, the
: Departments container references the DEPT_PREHTML and
: DEPT_POSTHTML nodes. The DEPT_PREHTML and DEPT_POSTHMTL
: nodes look as shown:
: <DEPT_PREHTML>
: <DIV id="Layer1" style="position: absolute"
: <IMG src="/images/edu.gif" width="917" height="104"/>
: </DIV>
: </DEPT_PREHTML>
: <DEPT_POSTHTML>
: <!-- Some more well formed HTML. -->
: </DEPT_POSTHTML>
: Similarly, EMP_PREHTML and EMP_POSTHTML contain well formed
: HTML.
: In my XSL, I would like to iterate through each of the
: containers and spit out the well formed HTML which is sitting
in
: the respective PRE_HTML and POST_HTML nodes. However, I am
: not having any luck dereferencing the node name that is the
: value of an element. In the XSL, I am using the xsl:copy-of
: to spit out the node specified by the PRE_HTML and POST_HTML
: elements of the CONTAINER. But, this does not work. The XSL
: looks as shown below:
: <xsl:template match="/CONTAINERS">
: <xsl:for-each select="CONTAINER">
: <xsl:copy-of select="PRE_HTML"
: <xsl:apply-templates select="*|@*|text()"/>
: </xsl:copy-of>
: <!-- Do some more things here -->
: <xsl:copy-of select="POST_HTML"
: <xsl:apply-templates select="*|@*|text()"/>
: </xsl:copy-of>
: </xsl:for-each>
: </xsl:template>
: Can you guys shed some light on this? How do I spit out
: the well formed HTML sitting in various nodes that are
: referenced by the PRE_HTML and POST_HTML elements?
: Thanks in advance,
: Sanjay
null -
Settings of Mail Host and Mail Port in transaction: SCOT for the node: SMTP
Hi,
Could anyone please explain me the significance of Mail Host and Mail Port for the SMTP node in transaction: SCOT.
It says Mail Server to which outbound mails can be passed.
Can i specify my GMAIL ID in the field Mail Host and left blank the Mail Port so that the mail can be sent to my GMAIL Account.
Please let me know if further details are required from my side.
Thanks & Regards,
Goutham.the below are the step to configure your mail server of anhy type ....
Steps to perform in SAP:
1. Transaction SM59 Setup an RFC Destination for the execution of the email transfer
a. Name: Internet Mail Gateway
b. Connection Type: T
c. Description: Internet Mail Gateway
d. Activation Type: Start
e. Explicit host:
i. Program: c:<dir>mlunxsnd (I used c:sapmail)
ii. Target Host: <Server_Name>
f. (MENU) Destination -> Gateway Options
i. Gateway Host: < Server_Name>
ii. Gateway Service: sapgw00
iii.<OK>
g. SAVE
2. Transaction SCOT Setup a default domain for your system
a. (MENU) Settings -> Default Domain
i. <Default_domain> (i.e. [email protected], Domain company.com)
ii. This setting gives a default to any user who does not have their email address maintained in the system. <user_name>@<default_domain>
3. Transaction SCOT Setup of the Node for queuing the emails before transfer to Exchange
a. Click on INT -> Create button
b. Give Default name (I choose EXCHG, as this was the node type for the Exchange Connector)
c. Give Description
d. Assign the RFC Destination previously created (Internet Mail Gateway)
e. Node: Internet
f. Address area: *
g. Supported address Types:
i. All formats except the fllw
ii. ALI, OBJ, OTF, SCR, URL
h. Choose Ok and Save
4. Transaction SCOT Setup a job to execute the send process on the queue.
a. (MENU) View -> Jobs
i. Select the Create Button
ii. Job Name: SAPConnect
iii. Put Cursor on Variant: SAP&CONNECTINT *As you created an INT Node, you need to run the variant for all of the INT sending. You can select SAP&CONNECTALL, but if you are not using any other node types, you can run with SAP&CONNECTINT.
iv. Select: Schedule Job Button
v. Schedule job for a periodic run approx. every 15 minutes
vi. Save
5. Transaction SU01 Maintain each users email address
a. Select users who require the ability to email from SAP
b. Under the address tab, in SU01, maintain their email address.
Steps to perform on the SAP system (operating System):
1. Create a directory for the SAP programs.
a. Create directory c:sapmail (Directory can be anything)
b. Unpack the ML*.CAR file from SAPs website
c. Alternatively, copy the ML* files from /usr/sap/../run/ directory. This ensures version compatibility with your SAP instance.
2. Create the directories for your sendmail program
a. http://emailrelay.sourceforge.net/
i. Download the emailrelay program
b. Create directory c:winntspoolemailrelay
i. Unpack the contents of the emailrelay zip into this directory
c. create Directory c:reskit (Used to make the emailrelay program run as a service
i. http://www.tacktech.com/display.cfm?ttid=197
1. www.tacktech.com had some great instructions for creating a service on the NT side. (Thank you Tacktech)
2. Use SRVANY to create the services, as documented below.
d. Open command prompt
e. Follow instructions for creating a service
i. cd reskit
ii. execute c:reskitinstsrv.exe "<SERVICE_NAME_Engine>" c:reskitsrvany.exe
1. This service is the engine
iii. execute c:reskitinstsrv.exe "<SERVICE_NAME_Send_Process>" c:reskitsrvany.exe
1. This service is the send process
iv. Modify the registry to represent the two new services
v. View instructions for Parameters and Application Creation under the services in the registry
vi. Command lines should be as follows:
1. <SERVICE_NAME_Engine> - c:winntspoolemailrelayemailrelay.exe --as-server --no-daemon
2. <SERVICE_NAME_Send_Process> - c:winntspoolemailrelayemailrelay.exe --no-daemon -hidden --forward-to (your_mailhost):SMTP --poll 5
vii. Start the services using service mgr.
f. cmd prompt cd sapmail
g. mlsomadm c:sapmailmailgw.ini (see below)
3. Create a mailgw.ini file (This file is used by the mlunxsnd program)
a. Open a command prompt
b. Change to the directory c:sapmail
c. Run command mlsomadm c:sapmailmailgw.ini
i. This creates the parameter file for the send process.
d. MAILGW.INI entries
i. System Name: [SID]
ii. Client: [000]
iii. Username: [MAILADM] no user required, as this is not being used for your connection
iv. Password: [*******] leave empty
v. Language: [E]
vi. Load Balancing: [N]
vii. Hostname: [app_server_name]
viii. System Number: [00]
ix. Gateway Hostname: [ ] you do not have to specify, it will use the default
x. Gateway Service: [ ] default will be used
xi. Use SAP Router: [N]
xii. Set Bcc Flag on Env..: [N]
xiii. Trace Level <In..>: 1
xiv. Trace file <In..> c:sapmailtracein.txt - Can be where ever you want
xv. Sendmail Command: c:winntspoolemailrelaysubmit -from <SENDER_ADDRESS>
xvi. A warning may come up that says to not use the t flag. IGNORE
xvii. Codepage: [ISO-8859-1]
xviii. Generate Notificat..: [N]
xix. Trace Level <Out..: [1]
xx. Trace File <Out..>: c:sapmailtraceout.txt - Can be where ever you want
xxi. Update File c:sapmailmailgw.ini [Y]
Steps to perform on the Microsoft Exchange System
1. Allow the SAP systems to enter on port 25 to send mails using Microsoft Exchange (SMTP Communication)
reward points ....
Girish -
What would you consider to be the "best" non-bluetooth headset for the Iphone 5? I have had some serious health issues of which could be stemming from the bluetooth and I need great sound quality both listening and speaking. Any suggestions?
Problem with wired headsets is that there is not std for mic in headsets so if its not 100 % made for iphones it will not work
Maybe you are looking for
-
We are trying to work on a group report through Workspace and wanted to check if the administrator can get real time updates on document changes within the Workspace. I can be reached at [email protected] Thank you.
-
TS1389 how do you authorize another computer to your itunes on windows 8
i have a windows 8 pc laptop, and downloaded and itunes to it, i am trying to download songs from my ipod touch onto the laptop, it is asking for authorization. the itunes i downloaded seems to be an updated version. i would like to know how to downl
-
How to add CCs when sending a document for e-signature?
In this tutorial, learn how to use digital signatures or the EchoSign service to copy others when sending a document out for electronic signature. The cc feature is a way to allow others to see the electronic signature progress without signing author
-
Default URLs for discoverer 4i
Hi All, Could anybody please tell me the default URLs for discoverer 4i adminitrator/viewer/plus and how to create a discoverer 4i user account so that user can log in and use the discoverer viewer/plus? Thanks a lot!
-
Hi, I created a new tablespace application and then wanted to create a rollback segment for it by using this command: CREATE ROLLBACK SEGMENT "APPLICATION" TABLESPACE "APPLICATION" STORAGE ( INITIAL 1M NEXT 1M OPTIMAL 4M MINEXTENTS 3 MAXEXTENTS UNLIM