Fileproperty for each database
Hi,
i want to learn mydatabases file sizes(database file and log file)
select * from sys.sysfiles gives that,but it is running for only one database.
i want to learn that for each database,is it possible?
Thanks
it's giving that for only one database which is working on.
To run this script for each database on the server, you'll need to set the database context for each database so that FILEPROPERTY can be used. Your options are:
Run a script to generate another with a USE statement for each database (Fabrizzio's suggestion)
Run the script using the undocumented sp_MSforeachdb procedure with your script as a parameter (Prasad's suggestion)
Write a script with a cursor over sys.databases and execute your script with a USE statement before each execution:
DECLARE
@SqlStatement nvarchar(MAX)
,@DatabaseName sysname;
IF OBJECT_ID(N'tempdb..#DatabaseSpace') IS NOT NULL
DROP TABLE #DatabaseSpace;
CREATE TABLE #DatabaseSpace(
DATABASE_NAME sysname
,LOGICAL_NAME sysname
,FILE_SIZE_MB decimal(12, 2)
,SPACE_USED_MB decimal(12, 2)
,FREE_SPACE_MB decimal(12, 2)
,FILE_NAME sysname
DECLARE DatabaseList CURSOR LOCAL FAST_FORWARD FOR
SELECT name FROM sys.databases;
OPEN DatabaseList;
WHILE 1 = 1
BEGIN
FETCH NEXT FROM DatabaseList INTO @DatabaseName;
IF @@FETCH_STATUS = -1 BREAK;
SET @SqlStatement = N'USE '
+ QUOTENAME(@DatabaseName)
+ CHAR(13)+ CHAR(10)
+ N'INSERT INTO #DatabaseSpace
SELECT
[DATABASE_NAME] = DB_NAME()
,[LOGICAL_NAME] = f.name
,[FILE_SIZE_MB] = CONVERT(decimal(12,2),round(f.size/128.000,2))
,[SPACE_USED_MB] = CONVERT(decimal(12,2),round(fileproperty(f.name,''SpaceUsed'')/128.000,2))
,[FREE_SPACE_MB] = CONVERT(decimal(12,2),round((f.size-fileproperty(f.name,''SpaceUsed''))/128.000,2))
,[FILENAME] = f.name
FROM sys.database_files f;';
EXECUTE(@SqlStatement);
END
CLOSE DatabaseList;
DEALLOCATE DatabaseList;
SELECT * FROM #DatabaseSpace;
DROP TABLE #DatabaseSpace;;
GO
Dan Guzman, SQL Server MVP, http://weblogs.sqlteam.com/dang/
Similar Messages
-
How to configure different listener for each database in 11gR2 RAC
Hi Friends,
Current Prod Setup :
11gR2 (11.2..0.2) RAC on RHEL 5.5 with 3 SCAN Listeners on default 1521 port.
Having 4 databases which are using SCAN-IP and listening on default port only.
As per policy, we have to create separate listeners (on different port) for each database.
like,
DB1 - 1522
DB2 - 1523
DB3 - 1524
DB4 - 1525
Even If I configure 4 listeners using NETCA, how my failover & load balancing will happen using SCAN & Newly Created Listeners ???
Thanks in advance..
Regards,
ManishHi,
I tried on 11gR2 TEST RAC Server to have different listener with different port (1529) for SCAN & Node Listener & tested failover, load-balancing which was successful.
[oracle@ravish5 admin]$ cat listener.ora
LISTENER_A=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_A)))) # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_A=ON # line added by Agent
[oracle@ravish5 admin]$ ps -ef | grep lsnr
oracle 1985 1 0 00:46 ? 00:00:00 /11g_crs/11.2.0.2/product/home/bin/tnslsnr LISTENER -inherit
oracle 1988 1 0 00:46 ? 00:00:00 /11g_database/11.2.0.2/product/home_1/bin/tnslsnr LISTENER_A -inherit
oracle 2928 1 0 01:00 ? 00:00:00 /11g_crs/11.2.0.2/product/home/bin/tnslsnr LISTENER_SCAN1 -inherit
[oracle@ravish5 admin]$ lsnrctl status LISTENER_A
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 02-MAY-2012 03:19:35
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_A)))
STATUS of the LISTENER
Alias LISTENER_A
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 02-MAY-2012 00:46:42
Uptime 0 days 2 hr. 32 min. 54 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /11g_database/11.2.0.2/product/home_1/network/admin/listener.ora
Listener Log File /11g_database/11.2.0.2/diag/tnslsnr/ravish5/listener_a/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_A)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.5)(PORT=1529)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.16)(PORT=1529)))
Services Summary...
Service "TEST" has 1 instance(s).
Instance "TEST2", status READY, has 1 handler(s) for this service...
Service "TESTXDB" has 1 instance(s).
Instance "TEST2", status READY, has 1 handler(s) for this service...
Service "srvc_test.clover.com" has 1 instance(s).
Instance "TEST2", status READY, has 1 handler(s) for this service...
The command completed successfully
SQL> show parameter listen
NAME TYPE VALUE
listener_networks string
local_listener string (DESCRIPTION=(ADDRESS_LIST=(AD
DRESS=(PROTOCOL=TCP)(HOST=192.
168.3.16)(PORT=1529))))
remote_listener string ravish-scan:1529
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
[oracle@ravish5 admin]$ srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521,1529
[oracle@ravish5 admin]$ srvctl config scan
SCAN name: ravish-scan, Network: 1/192.168.3.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /ravish-scan.clover.com/192.168.3.22
[oracle@ravish5 admin]$ srvctl config listener
Name: LISTENER
Network: 1, Owner: oracle
Home: <CRS home>
End points: TCP:1521
Name: LISTENER_A
Network: 1, Owner: oracle
Home: /11g_database/11.2.0.2/product/home_1
End points: TCP:1529
[oracle@ravish5 admin]$ srvctl config service -d TEST -s srvc_test.clover.com
Service name: srvc_test.clover.com
Service is enabled
Server pool: TEST_srvc_test.clover.com
Cardinality: 2
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: true
Failover type: SELECT
Failover method: BASIC
TAF failover retries: 0
TAF failover delay: 0
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: BASIC
Edition:
Preferred instances: TEST1,TEST2
Available instances:
TEST_NEW =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ravish-scan.clover.com)(PORT = 1529))
(LOAD_BALANCE = yes)
(FAILOVER = ON)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = srvc_test.clover.com)
(FAILOVER_MODE =
(TYPE = SELECT)
(METHOD = BASIC)
Actually different ports for different databases are required to have separation of duties. Once Firewall enabled betwen Client & DB Server only privileged users would have access to particular database.
Regards,
Manish -
SQL query to find out last login for each database
Hi everybody,
I have a view with following columns:
DatabaseSid, lastLogin, firstLogin.
I want to now the newest last_login date for every database.
SID First Login Last Login
e.g. Database1, 11.11.2011, 01.12.2011
Database1, 01.04.2012, 01.05.2012
Database3, 03.03.2004, 03.06.2005
Database 3 07.09.2012, 12.10.2012
How can I do a query to find out for eacht DB (DB1, DB2 and so on) the Last_Login Date?
Thank you in advance
SteveSteve wrote:
Hi everybody,
I have a view with following columns:
DatabaseSid, lastLogin, firstLogin.
I want to now the newest last_login date for every database.
SID First Login Last Login
e.g. Database1, 11.11.2011, 01.12.2011
Database1, 01.04.2012, 01.05.2012
Database3, 03.03.2004, 03.06.2005
Database 3 07.09.2012, 12.10.2012
How can I do a query to find out for eacht DB (DB1, DB2 and so on) the Last_Login Date?
Thank you in advance
SteveI'm curious as to how you collect this information from multiple databases into one database, and of what value the data is once you have it. -
Suppose there are 5 databases running in a server. Is there any way to know how much RAM is allocated to each database from Operating System level ? Thanks in advance.
total instance size Equlll to sga+pga so find both and sum them you will get each instance size.
use below querry to find on each database.
select decode( grouping(nm), 1, 'total', nm ) nm, round(sum(val/1024/1024)) MB
from (select 'sga' nm, sum(value) val from v$sga union all select 'pga', sum(a.value)
from v$sesstat a, v$statname b
where b.name = 'session pga memory'
and a.statistic# = b.statistic#) group by rollup(nm); -
Description for Each Database Metric and Policy of OEM 10g
Hi Dba's,
Thanks for having a look into this thread. I am looking for some Oracle online description for the Metrics as well as Policies it has defined in OEM 10g 10.2.0.3.0. Grid.Metrics
http://download.oracle.com/docs/cd/B16240_01/doc/em.102/b25986/toc.htm
http://download.oracle.com/docs/cd/B16240_01/doc/em.102/b16230/toc.htm
Policy
http://download.oracle.com/docs/cd/B16240_01/doc/em.102/b16231/toc.htm
All
http://download.oracle.com/docs/cd/B16240_01/doc/nav/portal_booklist.htm -
About listeners for different databases in the same ORACLE_HOME
Hello experts, I have a doubt
I have installed 3 different databases in the same server which OS is Suse Enterprise 10. At this moment I have just one listener that registers all the services. The number of connections are big for two of the three databases so I do not know what might be the best practices for this environment. I have some question I would like you suggestion for me:
DB version: 11.1.0.7
Should I have three listener, one for each database?
Is a good practice to have only one listener for multiple instances in the same server?
Are there differents between have only one listener for all the instance and have one listener for instance?
What about the performance?
Than you in advance, I hope you can guide me.Best practice is not to have multiple databases on one server, depending on resources.
Should I have three listener, one for each database?
No. That is pretty undesirable and requires more administration.
Is a good practice to have only one listener for multiple instances in the same server?
Yes. Remember the listener is only a broker and there are no permanent connections between client, listener and database.
Are there differents between have only one listener for all the instance and have one listener for instance?
Yes. The latter is an administration nightmare.
What about the performance?
Who cares? The only factors are
listener.log becomes too big --> set up proper cleanup procedures
The number of semaphores is exceeded (Unix) or no more threads can be created (Microsoft winblows), which will give rise to ora-12500.
Sybrand Bakker
Senior Oracle DBA -
DataSource for Replicated Database
Hi, first, of all, I don't know if this forum is the right place to post my question, so sorry for bothering you!
I'm working in a project where I'm thinking about using two Oracle databases one replicating the other. I read somewhere that this using Multimaster Replication is a good way to obtain more availability. But I don't know how to create a DataSource in OC4J that can use both databases and choose the one that's not down. If I were using Weblogic, I could create a connection pool for each database, and then create a MultiPool that uses the already created pools.
I don't know if I miss something in the documentation of Multimaster Replication, but I don't see how to create a single point of access for the Replicated databases, and neither how to create a DataSource for OC4J that can access more than one database. I'm totally new in Oracle world! Perhaps it isn't the better way to obtain more availabilty, perhaps I need to use a third component to provide a single point of access for the databases. I really don't know!
Thanks in advance,
RGBRoberto,
Multi-master replication is for distributed datbase. The best thing to have a better database availability is 9i Real Application Cluster.
Please follow http://otn.oracle.com/products/oracle9i/content.html to read more about RAC.
regards
Debu -
How to define the SGA/ PGA or memory target for the database
Hi,
We are using oracle 9i,10g,11g on AIX 5.1,6.1,
Currently we are running the databases on default memory which was selected at the time of creation of the databases,
Now application owner want to host more databases on the the same server, so they are asking for the
rough idea about the memory required for each database,
How can we calculate the amount of the memory required for each database.
ThanksHi,
You have to analyze the things by yourself, if i give you some recommendation it will not fit in your Environment . so you have choice to read the oracle Doc. for different version.
can start from here :Managing Memory -
How to open oracle listner for three database instances
please help me with following questions
I have 3 database instances
orcl
JIP02T
JIP04T
when i start the oracle database, does it start all 3 instances? when i start the oracle listner, does it start listner for all 3 instances?
when i echo $ORACLE_SID
[ora112@localhost admin]$ echo $ORACLE_SID
orcl
i can only see orcl and oracle listner is started only for one database instance.i can connect to only one database instance usign sql developer how can i start oracle database listner for other database instances as wellShishirTekadeR wrote:
. oraenv
Note that is "dot" SPACE oraenv
You will be prompted for the value of ORACLE_SID (one of the databases). It looks like this:
oracle:orcl$ . oraenv
ORACLE_SID = [orcl] ? dwsbx
The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 is /u01/app/oracle
oracle:dwsbx$
HIGHLY APPRECIATED U R IMP Tips!!!!!
But it’s very difficult to remember & manually enter oracle SID & HOME details every time after run (. Oraenv)
.profile creation is simple method and no need to remember SID & HOME details.(for multiple DB in one server)You don't have to "remember & manually enter oracle SID & HOME details every time after run " oraenv sets all those details for you. All you have to remember is the name of the instance you want to work with. The same thing you'd have to remember if you if you created (as you suggested) three different "profiles" - actually three different shell scripts, each to set the environment for a specific instance.
Yes, I do place "default" settings in .bash_profile. But with multiple databases the "default" settings are often not going to be what you need so you'll still have to run some process to change them. Either a home-grown script or oraenv. And either way you will have to remember the names of the instances you have to chose from. So in general I see no advantage of reinventing the wheel.
>
>
>
As per user information
He is using different port number for different instanceWhich accomplishes absolutely nothing except extra configuration headaches. It accomplishes nothing for security. It accomplishes nothing for availability.
And also it is very simple method to manage three different DB in three different listener entry (for DB maintenance activity.)Not as easy as managing one default listener. By far the most frequent listener configuration issue I see on this forum is when people try to configure one listener per database.
Single listener in multiple instance (if listener down all DB connection will affect)And why would the listener be down? I've been working full time with Oracle since version 7.3 - somewhere around 1995. I've NEVER seen a listener fall over and die. I have seen many people on this forum whose db connections failed because they were trying (unsucessfully) to configure multiple listeners.
All of my servers are running multiple databases. I have one test server that is running close to a dozen separate databases. One listener. I've NEVER had a situation where I thought to myself, "Gee, it would really help if I had created a separate server for each database"
>
>
Best Regards,
Shishir Tekade.
My Blog: http://shishirtekade.blogspot.com
Edited by: ShishirTekadeR on Dec 27, 2012 10:29 PM
Edited by: ShishirTekadeR on Dec 27, 2012 10:30 PM
Edited by: ShishirTekadeR on Dec 27, 2012 10:31 PM -
Select last value for each day from table
Hi!
I have a table that stores several measures for each day. I need two queries against this table and I am not quite sure how to write them.
The table stores these lines (sample data)
*DateCol1 Value Database*
27.09.2009 12:00:00 100 DB1
27.09.2009 20:00:00 150 DB1
27.09.2009 12:00:00 1000 DB2
27.09.2009 20:00:00 1100 DB2
28.09.2009 12:00:00 200 DB1
28.09.2009 20:00:00 220 DB1
28.09.2009 12:00:00 1500 DB2
28.09.2009 20:00:00 2000 DB2Explanation of data in the sample table:
We measure the size of the data files belonging to each database one or more times each day. The value column shows the size of the database files for each database at a given time (European format for date in DateCol1).
What I need:
Query 1:
The query should return the latest measurement for each day and database. Like this:
*DateCol1 Value Database*
27.09.2009 150 DB1
27.09.2009 1100 DB2
28.09.2009 220 DB1
28.09.2009 2000 DB2Query 2:
The query should return the average measurement for each day and database. Like this:
*DateCol1 Value Database*
27.09.2009 125 DB1
27.09.2009 1050 DB2
28.09.2009 210 DB1
28.09.2009 1750 DB2Could someone please help me to write these two queries?
Please let me know if you need further information.
Edited by: user7066552 on Sep 29, 2009 10:17 AM
Edited by: user7066552 on Sep 29, 2009 10:17 AMFor first query you can use analytic function and solve it.
with t
as
select to_date('27.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss') dt, 100 val, 'DB1' db from dual union all
select to_date('27.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 150, 'DB1' from dual union all
select to_date('27.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1000, 'DB2' from dual union all
select to_date('27.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1100, 'DB2' from dual union all
select to_date('28.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 200, 'DB1' from dual union all
select to_date('28.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 220, 'DB1' from dual union all
select to_date('28.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1500, 'DB2' from dual union all
select to_date('28.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 2000, 'DB2' from dual
select dt, val, db
from (
select row_number() over(partition by trunc(dt), db order by dt) rno,
count(*) over(partition by trunc(dt), db) cnt,
t.*
from t)
where rno = cntFor second you can just group by
with t
as
select to_date('27.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss') dt, 100 val, 'DB1' db from dual union all
select to_date('27.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 150, 'DB1' from dual union all
select to_date('27.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1000, 'DB2' from dual union all
select to_date('27.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1100, 'DB2' from dual union all
select to_date('28.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 200, 'DB1' from dual union all
select to_date('28.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 220, 'DB1' from dual union all
select to_date('28.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1500, 'DB2' from dual union all
select to_date('28.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 2000, 'DB2' from dual
select trunc(dt) dt, avg(val) val, db
from t
group by trunc(dt), db
order by trunc(dt) -
Set RMAN catalog default setting for all databases
Hi,
I am running a 11gR1 RMAN catalog.
I am wondering if is it possible to change a default configuration setting in the RMAN catalog so that all the new databases will inherit it.
For example, I would like all the new databases registered to the catalog to have:
BACKUP OPTIMIZATION ON
RETENTION POLICY TO REDUNDANCY 7
Thanks,
massiNo, the catalog cannot "dictate" configurations for databases. Each database retains configuration in the controlfile and this can be updated only by an rman connection (i.e. rman connecting to the database as a target). The CONFIGURE command in rman is used to set a "permanent" configuration parameter for a database but must be issued for each database individually.
Hemant K Chitale -
Hi,
i installed oracle EM GRID CONSOLE on my linux system with database called "emrep"
and then i installed another database "orcl"
now when i log into grid console and i view my targets i see only one listener
called "LISTENER0_oracle.ebenezer.com"
and when i see the serviced databases for this listener, i see both the databases under this listener.
does this mean that one listener in one system is all required to service how many databases as possible.
or do we need one unique listener for each database. if then how can i create unique listeners.
Can someone help me please.
Thanks,
Philip.Philip,
I will try to answer at your questions.
so from what u r saying is, if i have 3 databases in
my linux system under different oracle_homes.
all i need is one listener.ora file and have all 3
databases start under this one file. and i can delete
the other 2 listener.ora files, because i dont need
them at all.For this, my answer is a question : why have different ORACLE_HOME if databases are in same version ? This is Ok when database are in different oracle version.
1. if i want to know how many listeners are in setup...You can see it with lsnrctl command, after set well ORACLE_HOME (for linux, export ...) :
set ORACLE_HOME=e:\oracle\ora92
E:\oracle\ora92\bin>lsnrctl status
LSNRCTL for 32-bit Windows: Version 9.2.0.7.0 - Production on 16-NOV-2005 22:44:
41
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=gocha)(PORT=1522)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 9.2.0.7.0 - Produc
tion
Start Date 16-NOV-2005 22:44:04
Uptime 0 days 0 hr. 0 min. 40 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File E:\oracle\ora92\network\admin\listener.ora
Listener Log File E:\oracle\ora92\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=gocha)(PORT=1522)))
Services Summary...
Service "demo9i" has 1 instance(s).
Instance "demo9i", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
E:\oracle\ora92\bin>>
2. when i create a listener using net configuartion...For my part, manually seems the only one solution in your case.
>
3.when i have 3 databases and i when i login through...When you are logon to database, you can see what db with
select * from v$instance;But to connect to an other db, you need first set as well your ORACLE_SID
export ORACLE_SID=emrep
sqlplus '/ as sysdba'>
4. when i create a database by default the listener...Default name is well in most of case, but you can give a name to know the environment (like LISTENER_DEV, LISTENER_PROD...)
Perhaps you need to read some Oracle docs. You can find here http://www.oracle.com/pls/db102/portal.portal_db?selected=1 too many docs, I can advise you to read 2 Day DBA to start as well your dba life.
Good luck in your job,
Nicolas. -
Memory utalization of each database
Hi All,
Is there any way to record memory utilization for each database in one Instance. I have around 7 databases and want to know which one is utilizing more at current time.
Shamas Saeed (if Post helpful please mark as Answer) http://shamas-saeed.blogspot.comMy Problem is that my database server is using more than 22 GB memory and it is increasing. Where is rest of memory and why it is not reverting back to free or OS.
Second is Kindly give me best practices for setup memory for a database server machine.
Shamas Saeed (if Post helpful please mark as Answer) http://shamas-saeed.blogspot.com
Shamas,
I would request you to read first about SQL Server memory and then ask question. It seems like you are posting and giving own answer. Although you can answer your post but I would request you to take some time before posting question
What you are seeing is not an issue a database if utilized much would force SQL Server memory to cache pages corresponding to that database and it seems like that database has used all available memory. SQL Server can utilize all memory if max server memory
has not been fixed. I guess that is what you found in the blog
Again SQL Server would not release memory once taken unless OS flags low memory notification. If you want to read more about SQL server memory
http://social.technet.microsoft.com/wiki/contents/articles/22316.sql-server-memory-and-troubleshooting.aspx
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
My Technet Wiki Article
MVP -
i have 2 iphones and 1 ipod touch. i want to use the same itunes music database for each device. we did this before with our older ipods, by just sycing what was checked. does this work the same way with the new devices?
Have a read here...
https://discussions.apple.com/message/18409815?ac_cid=ha
And See Here...
http://support.apple.com/kb/HT1495 -
Unable to perform for-each on quer-database() result
Hi
I am using the quer-database function in my XSLT which is returning more than 1 value.
when i try assigning these values I am only able to assign the first row of elements. When I try dragging the for-each activity and try using it with the qurey-database node set I get an error saying "An expression must have only one link to the Target schema".
Is there some way that I can achieve this in my XSLT?
<xsl:template match="/">
<xsl:for-each select="">
<client:processResponse>
<client:Name>
<xsl:value-of select="oraext:query-database(concat("select entryid from XXLF_CHARACTERS where item_number=","'",/ns0:Customer/ns0:CustomerInfo,"'"),false(),true(),"jdbc/devag")"/>
</client:Name>
<client:Name2>
<xsl:value-of select="oraext:query-database(concat("select entryvalue from XXLF_CHARACTERS where item_number=","'",/ns0:Customer/ns0:CustomerInfo,"'"),false(),true(),"jdbc/devag")"/>
</client:Name2>
</client:processResponse>
</xsl:for-each>
</xsl:template>
This is what my XSLT looks like
Thanks.You have to use ROW and ROWSET to be able to able to get multiple elements... See the sample bellow...
http://neeraj-soa-tips.blogspot.com.au/2011/04/getting-xml-output-from-oraextquery.html
Cheers,
Vlad
Maybe you are looking for
-
Error while Creating SAP Transactional iView
Hi I am trying to create an SAP Transaction iview to connect with SAP CRM system, i selected property WebHTML but i coule notable to connect to that TCode iview. For this i created a System with User Credentials that will map to the back end system.
-
how do i set text in a object so that object expands with text and has even space on both sides of the object in illustrator cc?
-
CIDX Standard Message Map to IDoc -- 2
Hi Michal and Shabarish, Thanks for providing the required information. I am stuck up with a issue which is explained below. Sample xml downloaded from http://www.cidx.org/ is different from the required message. Sample ShipNotice xml downloaded is a
-
Automator bugs: freezing after Take Video Snapshot action
Hi there- Just testing out some of my automator workflows, and it seems that some basic (built-in) automator actions no longer function under Mountain Lion. Running the action "Take Video Snapshot" pops up a mini window that can take a user's photo.
-
DI and SQL seem to lose connection with each other
Hello Everyone, thanks for taking the time to read my question. I am getting the following error System call failed. (Exception from HRESULT: 0x80010100 (RPC_E_SYS_CALL_FAILED)) i am running a very big Store Procedure which takes about 15 minutes to