What's most similar to SQL's virtual columns in XML DB?
There is a concept in SQL that allows the creation of virtual columns (they display the results of an arithmetical expression, the results aren't stored but computed from current data).
I would like to ask what is most similar to this concept in the "World of XML", if anything.
I would recommend you to get involve DBA for any such tasks. The task which are listed it's not going to be simple thing. If you don't have prior experience in High availability configuration, it's really difficulty to manage even if you've any third party.
But you can rely on backup and restore for any third party tools.
To manage database ,configure and maintain HA you need to have SQL Server HA knowledge.
My testing so far seems to show that it's quite easy to break the replication with changes
to the databases. Using SSMS "canned" wizards and procedures to delete and recreate replication leaves many vestiges behind cluttering up the database instance.
You can create a script to cleanup the replication and re-create it from the scratch
http://www.mssqltips.com/sqlservertip/1808/sql-server-replication-scripts-to-get-replication-configuration-information/
http://support.microsoft.com/default.aspx?scid=kb;en-us;324401
--Prashanth
Similar Messages
-
Identifying most recently failed SQL statement
Hi,
We are using Forms 6i
Is there anyway to identify what the most recently failed SQL statement was?
We occasionally have Unhandled Exceptions for which we would like to identify the cause of.
To help do this quickly is there anyway to get Forms to report the SQL statement that failed.
I am sure I saw a demo many years ago where someone simply used Forms to report on the failure rather than writing custom exception code to identify the problem(May have had something to do with the Help button)
Thanks in advance.
NavThank you for your prompt reply.
I am encountering a "FRM-40735 Unhandled Exception"
When I press Shft+Ctrl+E(Display Error) I simply get a FRM-42100( No errors encountered recently)
This seems to contradict the FRM-40735 error.
Currently my fmrweb.res does not map anything to the Shift+F1 key.
What kind of function do I need to map it to? -
Range partition by a virtual column derived from XMLTYPE
I want to create table and partition it by interval partion (range partition) on a virtual column which is derived from XMLTYPE i get ora-14513 error.
create table dicom_archive_virtual
id integer not null primary key,
parent_id integer, -- where this image is created from
dcm_filename varchar2(60), -- DICOM image file name from import
description varchar2(100), -- description of the image
dicom orddicom, -- DICOM data
image ordimage, -- DICOM data in JPEG format
thumb ordimage, -- DICOM data in JPEG thumbnail
metadata xmltype, -- user customized metadata
isAnonymous integer, -- accessible flag for the research role.
study_date date as
(to_date(substr(extractValue(metadata,'//DATE/text()'),1,10),'yyyy-mm-dd')) virtual)
PARTITION BY RANGE (study_date)
INTERVAL(NUMTOYMINTERVAL(1, 'MONTH'))
( PARTITION p_2005 VALUES LESS THAN (TO_DATE('1-1-2006', 'DD-MM-YYYY')),
PARTITION p_2006 VALUES LESS THAN (TO_DATE('1-1-2007', 'DD-MM-YYYY')),
PARTITION p_2007 VALUES LESS THAN (TO_DATE('1-1-2008', 'DD-MM-YYYY'))
Study_date is a virtual colum which is derived from the column metadata which is of type XMLTYPE,so when i partition on this virtual column i get the follwoing error
SQL Error: ORA-14513: partitioning column may not be of object datatype
So i want to know whether this is not possible or there is any other alternative to achieve this.I want to create table and partition it by interval partion (range partition) on a virtual column which is derived from XMLTYPE Congratulations on trying to fit as many cutting edge techniques into a single line as possible.
So i want to know whether this is not possible ...The error message is pretty unequivocal.
...or there is any other alternative to achieve this.What you could try is materializing the virtual column, i.e. adding an actual date column which you populate with that code in the insert and update triggers. Inelegant but then complexity often is.
Cheers, APC
blog : http://radiofreetooting.blogspot.com -
Have Photoshop Elements from 2001. Got new computer with Windows 7 Professional 64 bit. It won't run on my new computer. What version is MOST SIMILAR to the old version I have, that will run on W7P-64? Thanks for any help. Popjer
You should probably just download the trial version of pse 12 and see if you can live with it.
Download a free trial or buy Adobe products | Adobe downloads
That being said, have you tried to install pse 1 on your computer?
How much free space is on your hard drive?
Do you have Internet Explorer 10 or 11?
Pse 1 can run on windows 7 x64, provided certain conditions are met. -
What is exactly STATISTICS in SQL Server
hi all,
What is exactly STATISTICS in SQL server query optimiser ?
Thanks
SelvaSome good content with proper example can help you for sure.
Link:
http://blog.idera.com/sql-server/understanding-sql-server-statistics/
Some part of text may give you idea
If there’s an upcoming election and you are running for office and getting ready to go from town to town city to city with your flyers, you will want to know approximately how many flyers you’re going to bring.
If you’re the coach of a sports team, you will want to know your players’ stats before you decide who to play when, and against who. You will often play a matchup game, even if you have 20 players, you might be allowed to play just 5 at a time, and you will
want to know which of your players will best match up to the other team’s roster. And you don’t want to interview them one by one at game time (table scan), you want to know, based on their statistics, who your best bets are.
Just like the election candidate or the sports coach, SQL Server tries to use statistics to “react intelligently” in its query optimization. Knowing number of records, density of pages, histogram, or available indexes help the SQL Server optimizer “guess”
more accurately how it can best retrieve data. A common misnomer is that if you have indexes, SQL Server will use those indexes to retrieve records in your query.
Not necessarily. If you create, let’s say, an index to a column City and <90% of the values are ‘Vancouver’, SQL Server will most likely opt for a table scan instead of using the index if it knows these stats......
Santosh Singh -
SIMBL Agent--what is it and why is its virtual memory footprint 30gb+?
Loud fan noises. Discovered something called SIMBL Agent was using well over 30 gigabytes of virtual memory. 2nd place was Safari at only 1.5!
So, the question of the day is
What is SIMBL Agent?
What is it doing?
And should I be concerned at 30gb+ of space being consumed?
(OK, so thats 3 questions of the day! )Thanks for the reply! My understanding is that virtual memory uses hard drive space... so 30 GB+ is excessive, right? Or, has "virtual memory" taken on a new meaning in Leopard, or OS X.
Virtual Memory information is mostly meaningless, except to software developers and very few of them.
Virtual Memory is often times filled with holes of unused address space. The application code is mapped into this space, and the disk used for this is the actual executable code.
All the shared libraries and application frameworks that the application uses are mapped into the virtual address space, often times with empty gaps in the address space. Again the disk used are the shared library and framework files.
If the application has loadable modules, such as browser or photoshop add-ons, then these get mapped into virtual address space. And the disk for this comes from the add-on files. Also these add-ons are most likely mapped into the virtual address space with gaps between them and other code.
Then comes the data used by the application. This comes in different flavors. Some might be memory mapped files, where an explicit file accessed as if it is part of memory (vs doing read/write operations). If the file is huge, then the virtual address space needed to map it will be large as well. Or an application can memory map a bunch of smaller files, but if you have enough of them then that adds up to a lot of virtual address space.
NOTE: when memory mapping a file, the application has the opiton of specifying where in the virtual address space it would like the file to be mapped. So it is very possible for an application to specify they would like to map a file at the 29GB address offset, and everything from the lower address up to the now memory mapped file at 29GB is empty address space. No RAM and no disk associated with this gap.
So far everything I've mentioned does not need swapfile space, as real files are used for all of the above.
The application stack is mapped into the virtual address space. Since the stack grows as the application calls subroutines, it is necessary to leave lots of unmapped addresses for the stack to grow into. Since most stacks to not grow that big, a lot of that virtual address space is never mapped to RAM nor disk.
And there is the actual data being worked on by the application. This could be local variables used as part of the program flow control, or it could be buffers used to hold data the program is working on. This data would get allocated potential space in swapfiles (/var/vm/swapfile*), however, if the operating system does not run out of RAM, then it will not need to actually create any additional space in the swapfiles.
Now I have no idea what your 30GB application is doing with all of its virtual address space. And it is possible that it is using all of it, and forcing RAM to /var/vm/swapfile* files. If you really want to know, you can always use the vmmap command from a terminal (man vmmap).
However, in my experience, no one really cares. All they really want to know is whether their Mac is spending a lot of time paging. And for that I like to use Applications -> Utilities -> Terminal
sar -g 50 100
The command will display pageout information once a minute for 100 minutes (adjust values to suite your tastes).
Now you do your normal work. When you come back an look at the sar output, if it is mostly zero or some small values, or a momentary burst, then you really do not need to worry. If you have sustained high values, or if you notice a the Mac is slow at the same time you getting high pageout numbers, then you could benefit from more memory, or running fewer apps at the same time. -
Oracle 9 - find most cpu consuming SQL + latest executed statement by user
Hi,
1. Can someone tell me how to find most CPU consuming SQL statement?
(Is this CPU_TIME in v$sql and v$sqlarea? if so is it in miliseconds?)
2. How can I find latest executed statement by a user and latest executed statement on the database (no mater what user)?
Thank you in advance.
Gr,
Adhi,
SELECT CPU,Total_Rows,sql_text FROM(
SELECT (s.cpu_time/1000000) CPU, sa.rows_processed Total_Rows, SUBSTR(sa.sql_text,1,50) sql_text
FROM v$sqlarea sa, v$sql s
WHERE sa.parsing_user_id =
(SELECT user_id FROM dba_users WHERE username='USER'
AND s.sql_text = sa.sql_text)
ORDER BY s.cpu_time DESC)
WHERE ROWNUM <= 10
Or else you can generate awr/statspack report and check the sqls which are order by more cpu_time.
2. How can I find latest executed statement by a user select a.username,a.logon_time,b.SQL_FULLTEXT from v$session a,v$sqlarea b where
a.sql_id=b.sql_id
and a.username='USER'
order by a.logon_time desc
latest executed statement on the database select a.username,a.logon_time,b.SQL_FULLTEXT from v$session a,v$sqlarea b where
a.sql_id=b.sql_id
order by a.logon_time desc
HTH
regards
Jafar -
What's wrong with this SQL?
what's wrong with this SQL?
Posted: Jan 16, 2007 9:35 AM Reply
Hi, everyone:
when I insert into table, i use the fellowing SQL:
INSERT INTO xhealthcall_script_data
(XHC_CALL_ENDED, XHC_SWITCH_PORT, XHC_SCRIPT_ID, XHC_FAX_SPECIFIED)
VALUES (SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT, HH_SCRIPT,'N'
FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE' UNION
SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT, HH_SCRIPT,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE');
I always got an error like;
VALUES (SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT,
ERROR at line 3:
ORA-00936: missing expression
but I can't find anything wrong, who can tell me why?
thank you so much in advance
mpowel01
Posts: 1,516
Registered: 12/7/98
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 9:38 AM in response to: jerrygreat Reply
For starters, an insert select does not have a values clause.
HTH -- Mark D Powell --
PP
Posts: 41
From: q
Registered: 8/10/06
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 9:48 AM in response to: mpowel01 Reply
Even I see "missing VALUES" as the only error
Eric H
Posts: 2,822
Registered: 10/15/98
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 9:54 AM in response to: jerrygreat Reply
...and why are you doing a UNION on the exact same two queries?
(SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS') ,HH_SWITCHPORT ,HH_SCRIPT ,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE' UNION SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS') ,HH_SWITCHPORT ,HH_SCRIPT ,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE');
jerrygreat
Posts: 8
Registered: 1/3/07
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 9:55 AM in response to: mpowel01 Reply
Hi,
thank you for your answer, but the problem is, if I deleted "values" as you pointed out, and then execute it again, I got error like "ERROR at line 3:
ORA-03113: end-of-file on communication channel", and I was then disconnected with server, I have to relogin SQLplus, and do everything from beganing.
so what 's wrong caused disconnection, I can't find any triggers related. it is so wired?
I wonder if anyone can help me about this.
thank you very much
jerry
yingkuan
Posts: 1,801
From: San Jose, CA
Registered: 10/8/98
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 9:59 AM in response to: jerrygreat Reply
Dup Post
jerrygreat
Posts: 8
Registered: 1/3/07
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 10:00 AM in response to: Eric H Reply
Hi,
acturlly what I do is debugging a previous developer's scipt for data loading, this script was called by Cron work, but it never can be successfully executed.
I think he use union for eliminating duplications of rows, I just guess.
thank you
jerry
mpowel01
Posts: 1,516
Registered: 12/7/98
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 10:03 AM in response to: yingkuan Reply
Scratch the VALUES keyword then make sure that the select list matches the column list in number and type.
1 insert into marktest
2 (fld1, fld2, fld3, fld4, fld5)
3* select * from marktest
UT1 > /
16 rows created.
HTH -- Mark D Powell --
Jagan
Posts: 41
From: Hyderabad
Registered: 7/21/06
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 10:07 AM in response to: jerrygreat Reply
try this - just paste the code and give me the error- i mean past the entire error as it is if error occurs
INSERT INTO xhealthcall_script_data
(xhc_call_ended, xhc_switch_port, xhc_script_id,
xhc_fax_specified)
SELECT TO_DATE (hh_end_date || ' ' || hh_end_time, 'MM/DD/YY HH24:MI:SS'),
hh_switchport, hh_script, 'N'
FROM tmp_healthhit_load
WHERE hh_script != 'BROCHURE'
UNION
SELECT TO_DATE (hh_end_date || ' ' || hh_end_time, 'MM/DD/YY HH24:MI:SS'),
hh_switchport, hh_script, 'N'
FROM tmp_healthhit_load
WHERE hh_script != 'BROCHURE';
Regards
Jagan
jerrygreat
Posts: 8
Registered: 1/3/07
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 11:31 AM in response to: Jagan Reply
Hi, Jagan:
thank you very much for your answer.
but when I execute it, I still can get error like:
ERROR at line 1:
ORA-03113: end-of-file on communication channel
so wired, do you have any ideas?
thank you very muchAnd this one,
Aother question about SQL?
I thought I already told him to deal with
ORA-03113: end-of-file on communication channel
problem first.
There's nothing wrong (syntax wise) with the query. (of course when no "value" in the insert) -
What are most commonly used BADIs for Opportunities and BPs?
Dear all,
What are mostly used BADI's for Oppotunity Management and Business Partner Maintenance, and what is the use of those BADIs.
what is the use of BAPI's in CRM, suggest me BAPI names and their usage
Your suggestions will be highly appreciated
Best wishes
Raghu ramHi Hari,
the variable which has to be created depends on the business requirement and differs based on the report requirement.
for more informatrion on variables you can refer to following docs,
characteristics variables
http://help.sap.com/erp2005_ehp_02/helpdata/en/5c/8db08a555411d189660000e829fbbd/frameset.htm
text variables
http://help.sap.com/erp2005_ehp_02/helpdata/en/5c/8db0a4555411d189660000e829fbbd/frameset.htm
formula variables
http://help.sap.com/erp2005_ehp_02/helpdata/en/5c/8db0b1555411d189660000e829fbbd/frameset.htm
http://help.sap.com/erp2005_ehp_02/helpdata/en/5c/8db0a4555411d189660000e829fbbd/frameset.htm
:->
NM -
How can i determine what the most recent os my imac will run?
How can i determine what the most recent os my iMac will run?
Serial Number QP6*****VUW
Processor 2.16 GHz Intel Core 2 Duo
Currently running Version 10.5.8
<Edited by Host>You CAN run 10.7, but I don't advise it, buy the 10.6.3 upgrade disk from the Apple Store online and then backup files off the machine and upgrade to 10.6.3., then Software Update to 10.6.8 would be the BEST option for your older hardware and it will run most all of your 10.5 software and be faster than 10.5 or 10.7.
If you go to 10.7 it won't run nearly any of your 10.5 software and you will have to buy all new ones for a machine that's getting a little bit dated, near it's end of life stage. 10.7 will slow your machine down, especially with low RAM.
http://roaringapps.com/apps:table
At your machines stage, the hard drive is getting old, the vents are clogged up with dust and it's going to cost a bit to get the drive etc upgraded. You can if you wish, but 10.7 really needs more RAM (4GB) and a faster hard drive.
But your still subjected to the video card going out etc.
IMO upgrade to 10.6.8 and stay there until the wheels fall off, then buy a new 10.8 machine being released after this summer or 10.9 machine.
Harden your Mac against malware attacks -
Query output similar to sql plus results
Is it possible to configure SQLDeveloper to output the query result similar to sql plus ?
I want to print the field names of the sql input, something as:
OWD_ID seconds policies/s COUNT(OWD_ID) MIN(OWE_PRC_DT) MAX(OWE_PRC_DT)
5174 872 17 14892 06/11/2009 12:53:31 06/11/2009 13:08:03 Thanks
Claudio
Edited by: Claudio Miranda on Nov 10, 2009 11:49 AM
Edited by: Claudio Miranda on Nov 10, 2009 11:51 AMClaudio Miranda wrote:
Is it possible to configure SQLDeveloper to output the query result similar to sql plus ?
I want to print the field names of the sql input, something as:
OWD_ID seconds policies/s COUNT(OWD_ID) MIN(OWE_PRC_DT) MAX(OWE_PRC_DT)
5174 872 17 14892 06/11/2009 12:53:31 06/11/2009 13:08:03 Thanks
Claudio
As far as I know, no :( -
What does || do in a SQL statement after a where with a like?
We have a packaged application that outputs a SQL statement with the || operator in a where clause along with a LIKE. I have never seen it before and expected it to be a syntax error. I do not see any examples of this syntax in sources such as Morgan's Library.
For example purposes, observe in the 10g Express Edition currently up for download. Observe that the SQL statement "compiles" when the || operator is used before a like statement, but does not "compile" when used on its own - it gives the error I expected that || is not a relational operator. What does this syntax do?
For orignal context, the relevant portion of the where clause is:
T1.QUOTE_NUM || :3 || T1.REV_NUM LIKE :4but the below does so just off of what is available in any instance - much easier to reproduce.
1 select * from v$sqltext
2* where (hash_value || 3657695316 || sql_text like 'L%')
SQL> /
no rows selected
SQL> edit
Wrote file afiedt.buf
1 select * from v$sqltext
2* where (hash_value || 3657695316)
SQL> /
where (hash_value || 3657695316)
ERROR at line 2:
ORA-00920: invalid relational operator
[pre]
Thanks for your attention and advice.I may have answered my own question. It appears that you can use the || to concatenate strings for comparison with a relational operator as in the example below. I've just never seen this before. Can anyone confirm this is what it really does?
SQL> select count(*) from dual;
COUNT(*)
1
SQL> select count(*) from dual
2 where '123' = '123';
COUNT(*)
1
SQL> edit
Wrote file afiedt.buf
1 select count(*) from dual
2* where '123' = '124'
SQL> /
COUNT(*)
0
SQL> edit
Wrote file afiedt.buf
1 select count(*) from dual
2* where '1' || '23' = '123'
SQL> /
COUNT(*)
1
SQL> edit
Wrote file afiedt.buf
1 select count(*) from dual
2* where '1' || '23' = '124'
SQL> /
COUNT(*)
0 -
What's most effecient way to load dvd op sys to G-4 with only cd capab ?
Have 2 Macs. Recently upgraded newer one to Tiger (full version). Would like to use my original 10.2.7 OS to load on my older machine but it only has CD capabilities. What's most efficient way to do this? (I'm assuming it's legal to do so since I bought a new version for my new machine).
PowerMac3,6 Mac OS X (10.4.5)Hi Bill, and welcome to the discussions.
Since you purchased a version of Tiger for the newer Mac, what you want to do would not violate the spirit of the licensing agreement (one install per copy of the software).
That said, what you want to do will likely violate the technical limitations of your original 10.2.7 installation DVD. Grey installation DVDs shipped with specific hardware only contain the drivers for that specific hardware. In other words, if the newer Mac is G4 MDD tower with FireWire 800 and a dual 1GHz processor, that's what the DVD will be expecting when it tries to install the system software. If your older machine is a G3 iMac, the DVD won't recognize the processor, CD drive, CRT monitor, or anything else on the logic board. It simply doesn't have the drivers required to support the different hardware.
If the older Mac has FireWire, you can install your original 10.2.7 on it, but there's no guarantee it'll work. Here's how:
1. Boot the old mac into Target Disk Mode (hold the T key while booting; when done, you'll get an orange FireWire icon bouncing around on a blue screen);
2. Connect the computers using FireWire cable, and the old mac should mount as an external hard drive;
3. Reoot the new mac from the 10.2.7 install DVD;
4. When it comes time to select the destination for the install, select the old Mac;
5. When finished, turn off both computers, and disconnect the FireWire cable;
6. Restart the old mac, and if you're really luck, and the hardware on the two macs isn't too different, it'll boot to 10.2.7;
7. Download the 10.2.8 Combo Update and install.
Just remember: the greater the difference in hardware specifications between the two macs, the greater the likelihood that this will not work.
Good luck!
Andrew -
What Function Module is used in a Virtual Cube
Hi,
where can is see what Function Module is used for a Virtual Provider(Cube)?double click on infocube, then in the menu choose Extras --> Information/Log status and then choose "Type/Namespace" and you will see the screen with all required information.
Regards,
DL -
I cannot reactivate my e-reader with my existing Adobe ID and password which are both correct. I alwayss get the message "activation server error, Code: E_AUTH_NOT_READY" What kind of problem is this and what is most important, how can I solve it quickly. I am on holiday and want to read. Thanks for speedy reply.
Yes, actually I talk about Digital editions. Do you know how to solve the problem as described in my first mail for Digital Editions? Thanks for your kind assistance.
Maybe you are looking for
-
Hi everybody. Im implementing a Badi and I would like to get the value that has been filled by the user in the original dynpro. I can´t get this value from exporting and importing structures that are received in the badi. I know two ways to get the f
-
Corrupt file Unable to Download
Itunes; 'cannot be updated because all of the playlists selected for updating no longer exist" Norton Alert "itunes.exe- Corrupt File the file or directory ( ipod_controlitunes/playcounts is corrupt" Itunes recommended updated to newer version-which
-
Launch Services Database rebuilding at restart
Well as it says in the title, with every restart of my machine, the computer is rebuilding the launch services database. I am not sure - if it's actually rebuilding the database; but every time I restart and open a python script for e.g. - it opens a
-
Really need help, would really appreciate it... :)
-
How to make a node storage disabled for a particular cache?
I have multiple caches that are distributed across the nodes in my application. Can I disable storage (localstorage=false) for a certain cache in a node. Intention is to make something like this: CacheA distributed between node1 and node2 CacheB dist