FTP into Xdb
I am using
ELSDV01> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for Solaris: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - ProductionI have a need to populate an XDB repository with a number of xml (shredded) documents for testing purposes. This I can do via a shell script (windows or solaris). But perhaps easier would be to use an FTP client. But there is a problem.
After each document put I would also need to create an accompanying history folder and finally a symbolic link that points to the latest (even if only one exist) version.
I have done a little research, but I cannot find any explicit information about logging in via an FTP client (like C:\WIndows\system32\ftp.exe) and then creating a symbolic link from within that FTP session. It is at all doable? Thank you.
After each document put I would also need to create an accompanying history folder and finally a symbolic link that points to the latest (even if only one exist) version. A couple of options :
- using the versioning capabilities of the XDB repository
- using XDB events to trigger the creation of the folder and the sym link whenever a document is dropped in a specific location
Similar Messages
-
Can't ftp in xdb when value xs:maxLength (schema)
I can't ftp into xdb when the content of a xml element
is larger then xs:maxLength(schema) of that xml element.
schema
<xs:element name="b">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="13"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
I don't have a trigger on the xml table that validates
the xml.
How can I avoid the ftp error without removing
xs:maxLength in the schemaNo, when a a schema based XML is stored in XML DB it is stored in the default table. Even with Lax Validation, we have to check that the contents can fit.
Eg If you've specified maxLenth(40) for an element or attribute of data type xs:string, we've created an corresponding attribute with a data type of varchar2(40) to store the data for that element. There is no way be can store a document that violoates the rules unless as there is no where in the object model to store the extra characters.
The only alternative is to upload the document as non-schema based. There is an outstanding enhancement request to add the ability to specify an error table as well as a default table to the schema. Documents which failed validation would be stored in the error table. There are not details as to if or when this enhancement might be implimented.. -
Error when dragging from ftp into bridge
I just want to share this cautionary tale
When I drag a file from ftp into bridge I get the following message, "This operation is not permitted. Instead use restore." Then the file is deleted off the ftp site and not added to bridge. Which means I then have to call up the vendor and ask them to upload the file to ftp again because I "accidentally deleted it" - very embarrassing.
Has anyone else ever seen this? I've googled this and searched in the Adobe Support section with no results.
Windows Bridge CS3 (2.1.1.9) on XP. FTP was through windows explorer, but I've done it from an ftp app too.Lora, that is always the best policy, whether you are downloading via FTP or
acquiring photos from a flash memory card. Using drag-and-drop, the
difference between copy and move is all too slight, and if an error occurs
during a move ... well, you already know the answer. -
Unable to FTP into new directories
I am unable to FTP into some directories I created in the workgroup manager. I have shared the directories. I have doubled checked the permissions and made sure that FTP is checked but still can't see the directories from my FTP client. Any ideas?
ThanksOpen Server Manager, Select FTP, then the Settings tab (at the bottom) then to dvanced Tab (now at the top)
Make sure in 'authenticated users see: ' that you either have HOME AND SHARE POINTS or FTP AND SHARE POINTS selected.
Peter
PowerMac G5 Dual 2.5Ghz Mac OS X (10.4.3) Mac OS X Server -
Error while loading valid, schema-related document into xdb
Hi Mark.
I tried to load other xml documents (ftp://ftp.tigr.org/pub/data/a_thaliana/ath1/PSEUDOCHROMOSOMES/) into the xdb.
The documents are related to the same schema as the documents i used until now.
I had to change the schema a bit. Three elements (protein_sequence, cds_sequence, transcript_sequence) are now stored as CLOB instead of VARCHAR2.
My first idea was, that the new documents are not valid, but they are.
The old documents still work. I get an ORA-00600 everytime.
I tried to get some information from the trace file but this did not help really.
I don't believe this will help you but i post it anyway:
Dump file d:\oracle\admin\pdw\udump\pdw_s000_6388.trc
Mon Jan 02 09:21:36 2006
ORACLE V9.2.0.7.0 - Production vsnsta=0
vsnsql=12 vsnxtr=3
Windows 2000 Version 5.0 Service Pack 4, CPU type 586
Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production
Windows 2000 Version 5.0 Service Pack 4, CPU type 586
Instance name: pdw
Redo thread mounted by this instance: 1
Oracle process number: 10
Windows thread id: 6388, image: ORACLE.EXE
*** 2006-01-02 09:21:36.218
*** SESSION ID:(23.9078) 2006-01-02 09:21:36.187
QMHD escaped text too long: dstlen=0 dstbuf=/
QMHD escaped text too long: dstlen=0 dstbuf=home
QMHD escaped text too long: dstlen=0 dstbuf=public
QMHD escaped text too long: dstlen=0 dstbuf=sys
QMHD escaped text too long: dstlen=0 dstbuf=xdbconfig.xml
QMHD escaped text too long: dstlen=0 dstbuf=/
QMHD escaped text too long: dstlen=0 dstbuf=home
QMHD escaped text too long: dstlen=0 dstbuf=public
QMHD escaped text too long: dstlen=0 dstbuf=sys
QMHD escaped text too long: dstlen=0 dstbuf=xdbconfig.xml
QMHD escaped text too long: dstlen=0 dstbuf=home
QMHD escaped text too long: dstlen=0 dstbuf=RSCHULZE
QMHD escaped text too long: dstlen=0 dstbuf=PDV70
QMHD escaped text too long: dstlen=0 dstbuf=SCOTT
QMHD escaped text too long: dstlen=0 dstbuf=SCOTT1
QMHD escaped text too long: dstlen=0 dstbuf=SCOTT2
QMHD escaped text too long: dstlen=0 dstbuf=hbachman
QMHD escaped text too long: dstlen=0 dstbuf=pdw_biowh31
QMHD escaped text too long: dstlen=0 dstbuf=pdw_stage
QMHD escaped text too long: dstlen=0 dstbuf=pdw_tigr_chromosome
QMHD escaped text too long: dstlen=0 dstbuf=uniprot
QMHD escaped text too long: dstlen=0 dstbuf=pdw_tigr_chromosome
QMHD escaped text too long: dstlen=0 dstbuf=data
QMHD escaped text too long: dstlen=0 dstbuf=xsd
QMHD escaped text too long: dstlen=0 dstbuf=data
QMHD escaped text too long: dstlen=0 dstbuf=seq1.txt
QMHD escaped text too long: dstlen=0 dstbuf=seq2.txt
QMHD escaped text too long: dstlen=0 dstbuf=seq3.txt
QMHD escaped text too long: dstlen=0 dstbuf=seq4.txt
QMHD escaped text too long: dstlen=0 dstbuf=seq5.txt
*** 2006-01-02 09:36:57.421
ksedmp: internal or fatal error
ORA-00600: internal error code, arguments: [kokbgcip1], [196609], [63], [], [], [], [], []
Current SQL statement for this session:
INSERT /*+ NO_REF_CASCADE */ INTO "PDW_TIGR_CHROMOSOME"."SYS_NT0upV7+xbRnu3KquZIaRFgQ=="("NESTED_TABLE_ID","ARRAY_INDEX","SYS_NC_ROWINFO$") VALUES(:1,:2,:3)
----- Call Stack Trace -----
calling call entry argument values in hex
location type point (? means dubious value)
ksedmp+327 CALLrel ksedst+0
ksfdmp.108+14 CALLrel ksedmp+0 3
_kgerinv+131 CALLreg 00000000 D3E4368 3
kgeasnmierr+19 CALLrel kgerinv+0 D3E4368 4BE2A94 1AF86D4 2
4B56B40
kokbgcip+343 CALLrel kgeasnmierr+0 D3E4368 4BE2A94 1AF86D4 2 4
30001 4 3F
qerocImageIterStar CALLrel kokbgcip+0
t+160
qerocStart+265 CALLrel qerocImageIterStar 237701B4 D3E41E0
t+0
_kokbint+242 CALL??? 00000000 81DFD20 1
kokbeva+338 CALLrel kokbint+0 237700B8 237700FC
..1.42_2.filter.9+1 CALLreg 00000000 D3E41E0
101
insolev.73+164 CALLrel evaopn2+0 237700B8
insbrp.73+1558 CALLrel insolev.73+0 2374A8B4 81DDFF8 1
insrow+173 CALLrel insbrp.73+0
insdrv.73+1302 CALLrel insrow+0 81DDFF8 4B584E4 0
..1.6_1.filter.73+2 CALLrel _insdrv.73+0 81DDFF8
28
..1.5_2.except.29+1 CALLrel _insexe+0 2374A8B4 4B58730
6740
..1.2_1.filter.25+3 CALLrel _opiexe+0 4 3 4B58B24
347
opikpr+512 CALLrel opiall0+0 65 22 4B58D20 0 0 4B58DB8 9C
20 0 0 0 0 0
..1.1_1.filter.34+1 CALLreg 00000000 65 14 4B59980
356
rpidrus.43+167 CALLrel opiodr+0 65 14 4B59980 0
_skgmstack+113 CALLreg 00000000 4B590A0
rpidru+109 CALLrel skgmstack+0 4B590B8 D3E41F0 F618 59941C
4B590A0
_rpiswu2+839 CALLreg 00000000 4B59498
kprball+1537 CALLrel rpiswu2+0 1EA8DD18 102 4B59414 4
1E833D34 102 4B59414 0 59932C
5991DC 4B59498 8
kokbint+1766 CALLrel kprball+0 4B59980 500
kokbeva+338 CALLrel kokbint+0 2374E498 2374E4DC
..1.42_2.filter.9+1 CALLreg 00000000 D3E41E0
101
insolev.73+164 CALLrel evaopn2+0 2374E498
insbrp.73+1558 CALLrel insolev.73+0 25EC7468 7D0BD90 1
insrow+173 CALLrel insbrp.73+0
insdrv.73+1302 CALLrel insrow+0 7D0BD90 4B5AD78 0
..1.6_1.filter.73+2 CALLrel _insdrv.73+0 7D0BD90
28
..1.5_2.except.29+1 CALLrel _insexe+0 25EC7468 4B5AFC4
6740
..1.2_1.filter.25+3 CALLrel _opiexe+0 4 3 4B5B3B8
347
opikpr+512 CALLrel opiall0+0 65 22 4B5B5B4 0 0 4B5B64C 77
20 0 0 0 0 0
..1.1_1.filter.34+1 CALLreg 00000000 65 14 4B5BE70
356
rpidrus.43+167 CALLrel opiodr+0 65 14 4B5BE70 0
_skgmstack+113 CALLreg 00000000 4B5B934
rpidru+109 CALLrel skgmstack+0 4B5B94C D3E41F0 F618 59941C
4B5B934
_rpiswu2+839 CALLreg 00000000 4B5BD2C
kprball+1537 CALLrel rpiswu2+0 1EA8DD18 102 1EA891BC 4
1E833D34 102 1EA8923C 0
59932C 5991DC 4B5BD2C 9
qmskInsertXmlType+ CALLrel kprball+0 4B5BE70 180
1203
qmskStoreXobWithIm CALLrel qmskInsertXmlType+
age+526 0
qmskStoreXob+16 CALLrel qmskStoreXobWithIm
age+0
qmskFlushXob+22 CALLrel qmskStoreXob+0 4BFCFCC 4BE6698 0
_qmeSaveContents+44 CALLreg 00000000
6
qmePreSave+2417 CALLrel qmeSaveContents+0 4BFE790 2 1
_qmtEventFire+259 CALLreg 00000000 D3E4368 3 4BFE8B0
qmxiWriteXobToImag CALLrel qmtEventFire+0 D3E4368 3 4BFE8B0
eInternal+60
qmxiWriteXobToImag CALLrel qmxiWriteXobToImag D3E4368 4B5D418 0 4BFE8B0
eWithHeap+82 eInternal+0 700ECBC 4B5D398 4B5D364
4B5D384 60A09FC 4B5C37C 0 6
D3E4368 C 4B5D418
qmxtgGetOpqImageFr CALLrel qmxiWriteXobToImag D3E4368 4B5D418 0 4BFE8B0
omXob+430 eWithHeap+0 700ECBC 4B5D398 4B5D364
4B5D384 4B5D470 C 6 700ECF8
4B5D418
qmskStoreXobWithIm CALLrel qmxtgGetOpqImageFr
age+370 omXob+0
qmskStoreXob+16 CALLrel qmskStoreXobWithIm
age+0
qmskFlushXob+22 CALLrel qmskStoreXob+0 4BFE8B0 4BFF740 4B5D6FC
_qmeInsertResRow+22 CALLreg 00000000
5
qmeInsertRes+1831 CALLrel qmeInsertResRow+0
qmeLinkInternal+47 CALLrel qmeInsertRes+0
12
qmeCreOrBindRes+33 CALLrel qmeLinkInternal+0 4BFE790 60A5D14 1DFE0323 1D 0
1 1 0 4B5D7A0 4B5D85C 0 0
qmeCreateRes+115 CALLrel qmeCreOrBindRes+0 4BFE790 60A5D14 1DFE0304 1F
1DFE0323 1D 0 1 0 4B5D85C 0 0
4B5D85C 0
qmeuCreateOrUpdate CALLrel qmeCreateRes+0 4BFE790 1DFE0304 1F 1DFE0323
Res+2232 1D 0 0 0
qmhput+393 CALLrel _qmeuCreateOrUpdate
Res+0
_qmhProcessRequestD CALLreg 00000000 1DFE4398
ata+2576
qmpsrun+1220 CALL??? 00000000
opitsk+838 CALLrel qmps_run+0 D3E4368
opiino+698 CALLrel opitsk+0 0 0 D3EA5C8 278A650 3 0
..1.1_1.filter.34+1 CALLreg 00000000 3C 4 4B5F448
356
opirip+662 CALLrel opiodr+0 3C 4 4B5F448 0
opidrv+654 CALLrel opirip+0 32 0 0
sou2o+25 CALLrel opidrv+0
opimai+336 CALLrel sou2o+0 4B5FE1C 32 0 0
BackgroundThreadSt CALLrel opimai+0
art@4+356
77E7B385 CALLreg 00000000
--------------------- Binary Stack Dump ---------------------
========== FRAME [1] (_ksedmp+327 -> _ksedst+0) ==========
Dump of memory from 0x04B56A68 to 0x04B56AE0
4B56A60 04B56AE0 00522AC8 [.j...*R.]
4B56A70 00000000 00000000 00000000 00000000 [................]
4B56A80 FFFFFFFF 0000003F 0D3E4444 01AF86D4 [....?...DD>.....]
4B56A90 0D3E444C 04B56ADC 0283676E 0D3E4444 [LD>..j..ng..DD>.]
4B56AA0 0D3E444C 00000000 00000000 01AF86D4 [LD>.............]
4B56AB0 00000002 00000009 0D3E4368 04BE2A94 [........hC>..*..]
4B56AC0 01A89F00 0D3E41E0 04B56A74 0D3E4368 [.....A>.tj..hC>.]
4B56AD0 04B571F8 015DDE00 02775F44 FFFFFFFF [.q....].D_w.....]
========== FRAME [2] (_ksfdmp.108+14 -> _ksedmp+0) ==========
Dump of memory from 0x04B56AE0 to 0x04B56AEC
4B56AE0 04B56AEC 0078468B 00000003 [.j...Fx.....]
========== FRAME [3] (_kgerinv+131 -> 00000000) ==========
Dump of memory from 0x04B56AEC to 0x04B56B0C
4B56AE0 04B56B0C [.k..]
4B56AF0 02836849 0D3E4368 00000003 081B3444 [Ih..hC>.....D4..]
4B56B00 0D3E41E0 081B3444 081B3444 [.A>.D4..D4..]
========== FRAME [4] (_kgeasnmierr+19 -> _kgerinv+0) ==========
Dump of memory from 0x04B56B0C to 0x04B56B28I have a new problem:
Due to the changes of the schema ( transcript_sequence ... stored as clob) i got an error in a view.
ORA-00932 : incosistent datatypes
The error occurs in V007 in the following rows
extractValue(value(tu),'/TU/TRANSCRIPT_SEQUENCE'),
extractValue(value(model),'/MODEL/CDS_SEQUENCE'),
extractValue(value(model),'/MODEL/PROTEIN_SEQUENCE')
But in V005 there is no error althought there is the row extractValue(value(tu),'/TU/TRANSCRIPT_SEQUENCE'),
the views
create or replace view V007_MODEL(FEAT_NAME,
GENE_SYNONYM,
GENE_SYNONYM_SYN_TYPE,
CHROMO_LINK,
TU_DATE,
TU_COORDSET_END5,
TU_COORDSET_END3,
TRANSCRIPT_SEQUENCE,
URL,
URL_URLNAME,
CURATED,
MODEL_COMMENT,
MODEL_FEAT_NAME,
PUB_LOCUS,
CDNA_SUPPORT_ACCESSION,
CDNA_SUPPORT_ACCESSION_DBXREF,
CDNA_SUPPORT_ACCESSION_IS_FLI,
CDNA_SA_UNIQUE_TO_ISOFORM,
CDNA_SA_ANNOT_INCORP,
MODEL_GENE_SYNONYM,
MODEL_GENE_SYNONYM_SYN_TYPE,
MODEL_CHROMO_LINK,
MODEL_DATE,
MODEL_COORDSET_END5,
MODEL_COORDSET_END3,
MA_AT_METHOD,
MA_AT_ATT_SCORE,
MA_AT_ATT_SCORE_DESC)
CDS_SEQUENCE,
PROTEIN_SEQUENCE)
as
select
distinct
extractValue(value(tu) ,'/TU/FEAT_NAME'),
extractValue(value(tu_gene_synonym) ,'/GENE_SYNONYM/text()'),
extractValue(value(tu_gene_synonym) ,'/GENE_SYNONYM/@SYN_TYPE'),
extractValue(value(tu_chromo_link) ,'/CHROMO_LINK/text()'),
extractValue(value(tu) ,'/TU/DATE'),
extractValue(value(tu) ,'/TU/COORDSET/END5'),
extractValue(value(tu) ,'/TU/COORDSET/END3'),
extractValue(value(tu) ,'/TU/TRANSCRIPT_SEQUENCE'),
extractValue(value(url) ,'/URL/text()'),
extractValue(value(url) ,'/URL/@URLNAME'),
extractValue(value(model) ,'/MODEL/@CURATED'),
extractValue(value(model) ,'/MODEL/@COMMENT'),
extractValue(value(model) ,'/MODEL/FEAT_NAME'),
extractValue(value(model) ,'/MODEL/PUB_LOCUS'),
extractValue(value(accession) ,'/ACCESSION/text()'),
extractValue(value(accession) ,'/ACCESSION/@DBXREF'),
extractValue(value(accession) ,'/ACCESSION/@IS_FLI'),
extractValue(value(accession) ,'/ACCESSION/@UNIQUE_TO_ISOFORM'),
extractValue(value(accession) ,'/ACCESSION/@ANNOT_INCORP'),
extractValue(value(model_gene_synonym),'/GENE_SYNONYM/text()'),
extractValue(value(model_gene_synonym),'/GENE_SYNONYM/@SYN_TYPE'),
extractValue(value(model_chromo_link) ,'/CHROMO_LINK/text()'),
extractValue(value(model) ,'/MODEL/DATE'),
extractValue(value(model) ,'/MODEL/COORDSET/END5'),
extractValue(value(model) ,'/MODEL/COORDSET/END3'),
extractValue(value(attribute_type) ,'/ATTRIBUTE_TYPE/@METHOD'),
extractValue(value(att_score) ,'/ATT_SCORE/text()'),
extractValue(value(att_score) ,'/ATT_SCORE/@DESC')--,
extractValue(value(model) ,'/MODEL/CDS_SEQUENCE'),
extractValue(value(model) ,'/MODEL/PROTEIN_SEQUENCE')
from TIGR t,
table(xmlsequence(extract(value(t) ,'/TIGR/PSEUDOCHROMOSOME'))) p,
table(xmlsequence(extract(value(p) ,'/PSEUDOCHROMOSOME/ASSEMBLY/GENE_LIST/PROTEIN_CODING/TU'))) tu,
table(xmlsequence(extract(value(tu) ,'/TU/GENE_SYNONYM'))) (+) tu_gene_synonym,
table(xmlsequence(extract(value(tu) ,'/TU/CHROMO_LINK'))) (+) tu_chromo_link,
table(xmlsequence(extract(value(tu) ,'/TU/URL'))) (+) url,
table(xmlsequence(extract(value(tu) ,'/TU/MODEL'))) model,
table(xmlsequence(extract(value(model) ,'/MODEL/CDNA_SUPPORT/ACCESSION'))) (+) accession,
table(xmlsequence(extract(value(model) ,'/MODEL/GENE_SYNONYM'))) (+) model_gene_synonym,
table(xmlsequence(extract(value(model) ,'/MODEL/CHROMO_LINK'))) (+) model_chromo_link,
table(xmlsequence(extract(value(model) ,'/MODEL/MODEL_ATTRIBUTE/ATTRIBUTE_TYPE'))) (+) attribute_type,
table(xmlsequence(extract(value(attribute_type),'/ATTRIBUTE_TYPE/ATT_SCORE'))) (+) att_score,
table(xmlsequence(extract(value(model) ,'/MODEL/EXON'))) exon
create or replace view V005_GENE_INFO(FEAT_NAME,
GENE_SYNONYM,
GENE_SYNONYM_SYN_TYPE,
CHROMO_LINK,
TU_DATE,
TU_COORDSET_END5,
TU_COORDSET_END3,
TRANSCRIPT_SEQUENCE,
URL,
URL_URLNAME,
LOCUS,
ALT_LOCUS,
PUB_LOCUS,
GENE_NAME,
GENE_NAME_IS_PRIMARY,
COM_NAME,
COM_NAME_CURATED,
COM_NAME_IS_PRIMARY,
GENE_INFO_COMMENT,
PUB_COMMENT,
EC_NUM,
EC_NUM_IS_PRIMARY,
GENE_SYM,
GENE_SYM_IS_PRIMARY,
IS_PSEUDOGENE,
FUNCT_ANNOT_EVIDENCE_TYPE,
FAE_ASSIGN_ACC,
FAE_ASSIGN_ACC_ASSIGN_METHOD,
GENE_INFO_DATE)
as
select
extractValue(value(tu) ,'/TU/FEAT_NAME'),
extractValue(value(gene_synonym) ,'/GENE_SYNONYM/text()'),
extractValue(value(gene_synonym) ,'/GENE_SYNONYM/@SYN_TYPE'),
extractValue(value(chromo_link) ,'/CHROMO_LINK/text()'),
extractValue(value(tu) ,'/TU/DATE'),
extractValue(value(tu) ,'/TU/COORDSET/END5'),
extractValue(value(tu) ,'/TU/COORDSET/END3'),
extractValue(value(tu) ,'/TU/TRANSCRIPT_SEQUENCE'),
extractValue(value(url) ,'/URL/text()'),
extractValue(value(url) ,'/URL/@URLNAME'),
extractValue(value(tu) ,'/TU/GENE_INFO/LOCUS'),
extractValue(value(alt_locus) ,'/ALT_LOCUS/text()'),
extractValue(value(tu) ,'/TU/GENE_INFO/PUB_LOCUS'),
extractValue(value(gene_name) ,'/GENE_NAME/text()'),
extractValue(value(gene_name) ,'/GENE_NAME/@IS_PRIMARY'),
extractValue(value(com_name) ,'/COM_NAME/text()'),
extractValue(value(com_name) ,'/COM_NAME/@CURATED'),
extractValue(value(com_name) ,'/COM_NAME/@IS_PRIMARY'),
extractValue(value(tu) ,'/TU/GENE_INFO/COMMENT'),
extractValue(value(tu) ,'/TU/GENE_INFO/PUB_COMMENT'),
extractValue(value(ec_num) ,'/EC_NUM/text()'),
extractValue(value(ec_num) ,'/EC_NUM/@IS_PRIMARY'),
extractValue(value(gene_sym) ,'/GENE_SYM/text()'),
extractValue(value(gene_sym) ,'/GENE_SYM/@IS_PRIMARY'),
extractValue(value(tu) ,'/TU/GENE_INFO/IS_PSEUDOGENE'),
extractValue(value(funct_annot_evidence),'/FUNCT_ANNOT_EVIDENCE/@TYPE'),
extractValue(value(assign_acc) ,'/ASSIGN_ACC/text()'),
extractValue(value(assign_acc) ,'/ASSIGN_ACC/@ASSIGN_METHOD'),
extractValue(value(tu) ,'/TU/GENE_INFO/DATE')
from TIGR t,
table(xmlsequence(extract(value(t) ,'/TIGR/PSEUDOCHROMOSOME'))) p,
table(xmlsequence(extract(value(p) ,'/PSEUDOCHROMOSOME/ASSEMBLY/GENE_LIST/PROTEIN_CODING/TU'))) tu,
table(xmlsequence(extract(value(tu) ,'/TU/GENE_SYNONYM'))) (+) gene_synonym,
table(xmlsequence(extract(value(tu) ,'/TU/CHROMO_LINK'))) (+) chromo_link,
table(xmlsequence(extract(value(tu) ,'/TU/URL'))) (+) url,
table(xmlsequence(extract(value(tu) ,'/TU/GENE_INFO/ALT_LOCUS'))) (+) alt_locus,
table(xmlsequence(extract(value(tu) ,'/TU/GENE_INFO/GENE_NAME'))) (+) gene_name,
table(xmlsequence(extract(value(tu) ,'/TU/GENE_INFO/COM_NAME'))) com_name,
table(xmlsequence(extract(value(tu) ,'/TU/GENE_INFO/EC_NUM'))) (+) ec_num,
table(xmlsequence(extract(value(tu) ,'/TU/GENE_INFO/GENE_SYM'))) (+) gene_sym,
table(xmlsequence(extract(value(tu) ,'/TU/GENE_INFO/FUNCT_ANNOT_EVIDENCE'))) (+) funct_annot_evidence,
table(xmlsequence(extract(value(funct_annot_evidence),'/FUNCT_ANNOT_EVIDENCE/ASSIGN_ACC'))) (+) assign_acc
I have a second question.
Usually I use WEBDAV or FTP to load the xml documents.
There are 5 documents for TIGR Arabidopsis. Now it works to load the documents into the xdb. I usually use WEBDAV. But when I load the first document I get an error. Nevertheless the document is shredded. Because the WEBDAV error message is not meaningful, I used PL/SQL.
I tried it like this
insert into TIGR values (xmltype(bfilename(USER,'/home/pdw_tigr_chromosome/data/CHR1.R5v01212004wos.xml'),nls_charset_id('AL32UTF8')))
( I deleted the expressions " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="tigrxml.xsd" " in the document before).
But this didn't work.
So I tried
insert into TIGR values (xmltype(xdbURIType('/home/pdw_tigr_chromosome/data/CHR1.R5v01212004wos.xml').getClob(),'tigrxml.xsd',1,1))
and it worked. But it seemed to need more time than per WEBDAV or FTP ( but probably I err ). It took 1h 48m for a 74MB file.
When I load the documents with PL/SQL the document is not shredded. At least the document has its original size when i have a look at the repository per WEBDAV and not the usual 0 bytes. But the data is correctly stored in the xmltype table TIGR
Message was edited by:
Nick_MD -
How to publish iweb ftp into domain folder thru iweb?
Hey guys, I have just finished making a website thru iweb for my friend, but he need to edit it in his computer.
Normally, I can just transfer a domain file via USB, but I can't find mine. I have downloaded the easy find software, and tried to find domain.sites2 (coz my iweb version is 3.0.4). However it doesn't work. I am not quite sure I have saved it into a domain file ( but I am sure I have saved it, coz every time when I made some changes i will click command+s, so I think my file is definitely somewhere in my computer but probably in other forms. WHO can tell me where did I save it when I click command+s??? ).
Is there an order specifically for publishing it into a domain file? I didn't find an order like that. Is it automatically? Or do I need to do it by myself?
Another weird thing is that my friend made a website thru mobileme, and it seemed like it can publish a domain file automatically, but ftp can't? Or just I did it the wrong way?
Also when he transfer his domain file to my computer (when I was still editing my previous website), I opened it and it somehow covered my website, and I can't find it!!!! The last thing is that except for preview what exactly is publish into local folder for?
I did come across several problems, guys plz help me out!!! Millions of thanks in advance!!Welcome to the Support Communities. If you don't see your Domain file here:
...try searching for sites2 rather than domain.sites2.
And rather than sending Domain files back & forth, consider switching to a website builder which incorporates collaborative website editing — see this post:
What happens to iWeb when there's no MobileMe? -
Inserting XML document into XDB fails with can't convert to OPAQUE
Hi,
When I try to insert a document using oracle 9.2.0.5 client software into a 9.2.0.5 database, with the following code:
void insertDocument(String document) {
XMLType xt = XMLType.createXML(connection, document);
PreparedStatement ps = connection.prepareStatement("insert into xmldocuments values(?)");
ps.setObject(1, xt);
ps.executeUpdate();
The setObject function always throws an exception (after a very long time) with:
java.sql.SQLException: Fail to convert to internal representation: OPAQUE()
This also fails when we use the InputStream and org.w3c.xml.Document variants.
We use the OCI driver, otherwise we get errors retrieving the documents from XMLDB.
What is going wrong here?David,
If you search through the historical data in this list there are previous post regarding opaque.
These may be useful. Possibly your reaching the size limit. -
How can i deposit a XMLSchema into XDB Repository
Hi!
I've created some folders in the XML DB repository with the package: dbms_xdb.createFolder
And than i read copy the XMLSCHEMA to the Folder which was been created. But how can i do this?
And what is the XDB repository?
And what is webDAV?
Thanks for help.
With best regards
NicoleNicole,
Oracle XML DB Repository is a mechanism to display all XML content stored in your database using a File / Folder (Resource in WebDAV terminology) metaphor. Not more than that. The easiest way for getting an idea of how it looks like in the database is:
select path from path_view;
If you're running Windows, type
http://localhost:8080
in the address field of Windows Explorer and hit Go.
You can create resources without reference to any schema; XML DB will store and manage your resources in its own schema.
But if you register a schema first, and then create schema-based XML documents, you can have a separate table created for each root element in your schema. In that case, each and every insert/update/delete operation in the repository will have the same effect on the associated table, and vice versa.
For a full description of this feature, refer to http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96620/xdb03usg.htm#1037860. -
Help! Unable to FTP into SSL Server
PLEASE HELP!
I lease a secure server that -- for years -- I used to be able to access flawlessly via FTP with Fetch in Passive mode.
For some reason, I can no longer access this server from either of my Macs, as I have been doing for years. I've changed nothing on my Macs, except for downloading and installing Apple's various "patches"... which leads me to think that this is the culprit.
I've double checked my DSL modem... my DSL service... even my Hosting provider has double-checked everything... all is well. I can access the SSL server on a different machine without issues, and can even access other non-SSL servers just fine with either of my Macs. BUT... when I try to access my SSL server, I ALWAYS get the same error message:
"Can't build data connection: Connection timed out."
I've even tried a half-dozen other FTP programs... ALWAYS the same results. (Even if I go to a local coffeeshop and, using my wireless connection, use a completely different service provider... I STILL get the same results!!!
THIS leads me to suspect something is obviously wrong here... but I am completely stumped.
If anyone can offer me any enlightenment or, ideally, help me solve this issue. I'll put in a good word for you with the Honcho upstairs!
Thanks,
Jeff
P.S. I'm using two different Macs... always getting the same results:
15" Powerbook G4/1 Ghz w/OS X 10.3.9 and
PowerMac G4/533 Mhz w/OS X 10.2.8...
... each with FAR more RAM and Disk Space than is even a concern!
P.P.S. I'm also including a Session Log as reference... the username, password, IP address and domain name are bogus, but the rest is actual.
=========
Connection attempt 1:
Connecting ssl.domainname.com (123.45.67.890)
220 host.domainname.com FTP server (Version wu-2.6.1-16) ready.
USER username
331 Password required for username.
PASS ******
230 User username logged in. Access restrictions apply.
SYST
215 UNIX Type: L8
Remote system is UNIX - text files transfer optimization is ON
MACB ENABLE
500 'MACB ENABLE': command not understood.
PWD
257 "/" is current directory.
PORT 10,0,0,5,192,111
200 PORT command successful.
LIST
425 Can't build data connection: Connection timed out.
15" G4/1 Ghz Powerbook Mac OS X (10.3.9) PowerMac G4/533 Mhz (running 10.2.8)
15" G4/1 Ghz Powerbook Mac OS X (10.3.9)
15" G4/1 Ghz Powerbook Mac OS X (10.3.9)Hi Jeff,
Curiously, do you have a firewall up and running at home? Have you checked to see if port 21 (for FTP) is open and/or forwarded?
I couldn't access a FTP server which I used to visit (prior to getting broadband access) and realized that I needed to forward port 21 in my router settings to properly connect.
Also, are Sharing settings/privileges set correctly?
Hope this helps a little...
Steve -
Repository event handler doesn't work when inserting an xml-doc via ftp
Hi,
I want to add a 'schemaLocation'-attribute to an XML-document when I load it in the repository. Therefore, I use the precreate-repository event and created a Repository Event Handler (see code extract below).
Everything works fine if I type the following code in SQL Plus:
Declare
v_return BOOLEAN;
Begin
v_return:=DBMS_XDB.createresource('/public/xml/test.xml', XMLType(bfilename('XMLDIR', 'test.xml'),nls_charset_id('AL32UTF8')));
end;Unfortunately, when I try to insert an XML-document via ftp into the /public/xml folder it doesn´t work as expected and no 'schemaLocation'-attribute is added to the new resource.
What's the reason for this strange behavior and how can I solve it?
For your information: I use the Oracle Database 11g Enterprise Edition Release 11.2.0.1.0
Thank you very much for your help!!!
Repository Event Handler code extract:_
create or replace
PACKAGE BODY schemalocation AS
PROCEDURE handlePreCreate (eventObject DBMS_XEVENT.XDBRepositoryEvent) AS
XDBResourceObj DBMS_XDBRESOURCE.XDBResource;
var XMLType;
l_return BOOLEAN;
l_xmldoc dbms_xmldom.DOMDocument;
l_docelem dbms_xmldom.DOMElement;
l_attr dbms_xmldom.DOMAttr;
c1 clob;
node dbms_xmldom.DOMNode;
txid varchar2(100);
dDoc DBMS_XMLDOM.DOMDocument;
nlNodeList DBMS_XMLDOM.DOMNodeList;
BEGIN
XDBResourceObj := DBMS_XEVENT.getResource(eventObject);
dbms_lob.createTemporary(c1,TRUE);
var:=DBMS_XDBRESOURCE.getcontentxml(XDBResourceObj);
l_xmldoc := dbms_xmldom.newDOMDocument(var);
l_docelem := DBMS_XMLDOM.getDocumentElement(l_xmldoc);
------ add schemaLocation attribute
l_attr := DBMS_XMLDOM.createAttribute(l_xmldoc, 'xsi:schemaLocation');
DBMS_XMLDOM.setValue(l_attr, 'urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd');
l_attr := DBMS_XMLDOM.setAttributeNode(l_docelem, l_attr);
DBMS_XMLDOM.WRITETOCLOB(l_xmldoc, c1);
------- get the value of the TxId-tag
dDoc := DBMS_XMLDOM.NEWDOMDOCUMENT(c1);
nlNodeList := DBMS_XMLDOM.GETELEMENTSBYTAGNAME(dDoc, 'TxId');
node := DBMS_XMLDOM.ITEM(nlNodeList, 0);
txid:= dbms_xmldom.getnodevalue(dbms_xmldom.getfirstchild(node));
l_return:=DBMS_XDB.createresource('/public/ok/'||txid||'.xml', XMLType(c1));
END;Marco,
Here's an example of the problem :
create or replace package handle_events
as
procedure handlePreCreate(p_event dbms_xevent.XDBRepositoryEvent);
end;
create or replace package body handle_events
is
procedure handlePreCreate (p_event dbms_xevent.XDBRepositoryEvent)
is
XDBResourceObj dbms_xdbresource.XDBResource;
doc XMLType;
res boolean;
begin
XDBResourceObj := dbms_xevent.getResource(p_event);
doc := dbms_xdbresource.getContentXML(XDBResourceObj);
select insertchildxml(
doc
, '/root'
, '@xsi:schemaLocation'
, 'urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd'
, 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
into doc
from dual;
res := dbms_xdb.CreateResource('/public/xml/result.xml', doc);
end;
end;
declare
res boolean;
begin
res := dbms_xdb.CreateFolder('/public');
res := dbms_xdb.CreateFolder('/public/tmp');
res := dbms_xdb.CreateFolder('/public/xml');
end;
declare
res boolean;
resconfig xmltype;
my_schema varchar2(30) := 'DEV';
resconfig_path varchar2(300) := '/public/ResConfig.xml';
resource_path varchar2(300) := '/public/tmp';
begin
resconfig := xmltype(
'<ResConfig xmlns="http://xmlns.oracle.com/xdb/XDBResConfig.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/xdb/XDBResConfig.xsd http://xmlns.oracle.com/xdb/XDBResConfig.xsd">
<event-listeners set-invoker="true">
<listener>
<description>My event handler</description>
<schema>'||my_schema||'</schema>
<source>HANDLE_EVENTS</source>
<language>PL/SQL</language>
<events>
<Pre-Create/>
</events>
<pre-condition>
<existsNode>
<XPath>/r:Resource[r:ContentType="text/xml"]</XPath>
<namespace>xmlns:r="http://xmlns.oracle.com/xdb/XDBResource.xsd"</namespace>
</existsNode>
</pre-condition>
</listener>
</event-listeners>
<defaultChildConfig>
<configuration>
<path>'||resconfig_path||'</path>
</configuration>
</defaultChildConfig>
</ResConfig>'
res := dbms_xdb.CreateResource(resconfig_path, resconfig);
dbms_resconfig.addResConfig(resource_path, resconfig_path, null);
end;
/Giving the following input XML file :
<?xml version="1.0" encoding="utf-8"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>This works :
SQL> declare
2 res boolean;
3 begin
4 res := dbms_xdb.CreateResource('/public/tmp/test.xml',
5 xmltype(bfilename('TEST_DIR','test.xml'), nls_charset_id('AL32UTF8')));
6 end;
7 /
PL/SQL procedure successfully completed.
SQL> select XMLSerialize(document xdburitype('/public/xml/result.xml').getXML()
as clob indent size = 2) result
2 from dual
3 ;
RESULT
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd
"/>With the same document loaded via FTP, we get :
SQL> select XMLSerialize(document xdburitype('/public/xml/result.xml').getXML()
as clob indent size = 2) result
2 from dual
3 ;
ERROR:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00283: document encoding is UTF-16-based but default input encoding is not
Error at line 1
no rows selectedand the content looks like :
< ? x m l v e r s i o n = " 1 . 0 " e n c o d i n g = " u t f - 8 " ? >
< r o o t x m l n s : x s i = " h t t p : / / w w w . w 3 . o r g / 2 0 0 1 / X M L S c h e m a - i n s t a n c e " / >As a workaround, I've found that serializing and re-parsing the document solves the problem :
select insertchildxml(
xmltype(doc.getclobval())
, '/root'
, '@xsi:schemaLocation'
, 'urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd'
, 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
into doc
from dual;
...We then get the expected result after FTP transfer :
SQL> select XMLSerialize(document xdburitype('/public/xml/result.xml').getXML()
as clob indent size = 2) result
2 from dual
3 ;
RESULT
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd
"/>The workaround also works for the DOM version presented above.
Any ideas? -
How do I stop DW CS6 randomly changing file permissions via FTP?
How do I stop Dreamweaver CS6 12.0.1.5842 randomly changing file permissions when it uploads files to my web server via FTP.
I can no longer trust Dreamweaver to upload websites correctly as it changes permissions on some files which then deny the server access to the file which in turn makes the webpage unreachable/return a 403 error.
This is driving me insane.
I'm using an early 2011 Macbook Pro 10.7.5.Hi,
I'm having this problem too. Has Adobe fixed the issue yet? This appears to be an Adobe problem, not all the web hosts out there. CS6 is ramdomly (meaning: not every time) changing permissions on files uploaded with it and is not usable for web work until this problem is fixed by Adobe or a solution is provided. If I wanted to use a separate FTP program I would not have recommended that my employer buy multiple Adobe CS6 product licenses. One of the primary appeals of DW is the integration of FTP into the workflow.
I am using a destop iMac2.8 GHz Intel Core 2 Duo, 4 gigs of 800 MHz DDR2 SDRAM.
OSX 10.7.5
I am using DW Version 12 Build: 5808
Dreamweaver CS4 that I was using until this new purchase was working just fine. No file permisssion changes. I am being forced to go back to using it until Adobe posts a fix for this.
I should ask while I'm here: has anyone found a solution for this yet?
Thanks,
-c- -
How do I enable the administrator account for FTP use.
I utilized an FTP enabler software to enable FTP on my Mac. And I can FTP into the subaccounts on my Mac but I can not do so with the Main administrator account (mine). So I went into terminal to test the Main Administrator, I get the following message. I'm lost as to what to do to enable FTP with the Administrator account.
Name (192.168.1.9:Administrator): Administrator
331 User Administrator accepted, provide password.
Password:
530 User Administrator may not use FTP.
ftp: Login failed
What I'm trying to do is to be able to scan documents from my Xerox Printer to all the Macs in our home. I have set up my wife's and daughter's Macs to allow for scanning documents to their accounts on their Macs. They each are sub accounts as I am the Administrator for their Macs. Additionallly, I created a subaccount on my Mac and I'm able to scan to it as well. But when I try to scan to my Administrator account, it won't work.
Any help would be appreciated. I'm using Mountain Lion on all 3 Macs with the latest version. I enabled FTP on all 3 Macs.Thanks for your suggestions but it was more complicated than what you suggested. I was finally able to find a guy at xerox that was able to resolve the issue. I believe it involved changing some settings deep inside the bowels of the programming code much like the old days of using MS DOS to change internal settings on a PC. I watched him do it on my screen and it involved deleting the administrator account from being locked down within the O/S.
Regardless, thanks for the suggestion. -
How do I create an FTP Share?
Well foks, after much tribulation migrating from SL server to Lion Server I finally got ftp working (via terminal) using the instructions from this KB (http://support.apple.com/kb/HT4704).
The problem with this is, connecting to the server via FTP only shows my local administrative user account on the server. We have a Xerox WorkCenter (printer, scanner, etc) that we use for scanning documents to the server over the network.
The share I used in Snow Leopard Server and now Lion Server is on a volume connected to the server. I can't figure out how to get a volume or any folder outside of my user account to be available via ftp. The support documents didn't detail that. My current workaround is I created a folder in my user account on the server, pointed the Xerox WorkCenter to that folder, and attached a folder action to that folder which automatically moves the network scanned docs to the afp share on the connected volume that everyone was used to using and had guest access too. Kind of messy, but it works. I still rather have a direct ftp connection a share, but can't figure out that one.
Need some help (because the SMB feature in our Xerox is not working with Lion Server)From the 'man' page for 'ftpd':
..."To set up "ftp-only" accounts that provide only FTP, but no valid shell login, you can copy/link /sbin/nologin to /sbin/ftplogin, and enter /sbin/ftplogin to /etc/shells to allow logging-in via FTP into the accounts, which must have /sbin/ftplogin as login shell."...
So rather than having an empty value for the user's 'shell', you likely need to set it to '/sbin/ftplogin'. But since '/sbin/ftplogin' doesn't exist by default, you will have to create it either as a copy of, or symlink to '/sbin/nologin'. And don't forget to add '/sbin/ftplogin' to the '/etc/shells' file so that the system recognizes it as a "valid" shell.
Note that this won't prevent a GUI login. -
Business Catalyst and external ftp hosts
Hi i have created a web site using Muse and external web host i.e.. Heart Internet. My client is wanting to be able to update photos in the gallery himself. I know using Business Catalys and in- browser editing that this is possible. My question is can i register an external host ftp into BC or does BC have to create a host for the site??
You can not host BC anywhere else other then the Adobe BC setup it has, it has its own hosting - ITs a SAAS (Software as as a solution) hosted platform. It has SFTP access if that is what your referring too?
-
FTP Broken in Dreamweaver CS6 and CC
I have been unable to ftp into 1 of 3 websites that I maintain ever since upgrading to Dreamweaver CS6 (and now CC). The problem appears to be that the site's root directory name as reported by a PWD command is shorter than the name required to be issued by the CWD command after logging into the FTP server. CS5.5 logs into the website's FTP server without any trouble and the script looks like this:
< 220 Service Ready for new User
> USER .myusername
< 331 Password Needed for Login
> PASS
< 230 User HUBING Logged in Successfully
> PWD
< 257 "/EH05/users/hubing" is Current Directory
> PWD
< 257 "/EH05/users/hubing" is Current Directory
> CWD //gs16/gs16/share/web/cvel
< 250 Directory successfully changed to "/gs16/SHARE/web/cvel"
> PWD
< 257 "/gs16/SHARE/web/cvel" is Current Directory
> CWD /gs16/SHARE/web/cvel
< 250 Directory successfully changed to "/gs16/SHARE/web/cvel"
> PASV
< 227 Entering Passive Mode (130,127,239,114,143,84)
> TYPE A
< 200 TYPE Command OK A
> LIST
Dreamweaver CS6 and Dreamweaver CC start out correctly, then suddenly issue a QUIT command:
< 220 Service Ready for new User
> USER myusername
< 331 Password Needed for Login
> PASS
< 230 User HUBING Logged in Successfully
> PWD
< 257 "/EH05/users/hubing" is Current Directory
> CWD /EH05/users/hubing
< 250 Directory successfully changed to "/EH05/users/hubing"
> CWD //gs16/gs16/share/web/cvel
< 250 Directory successfully changed to "/gs16/SHARE/web/cvel"
> PWD
< 257 "/gs16/SHARE/web/cvel" is Current Directory
> QUIT
< 221 Closing Session
Any suggestions?Bhawna,
Yes. I can establish a connection without defining the site root folder. The directory that I login to by default is /EH05/users/hubing. One of the other sites that I maintain is in a subdirectory of that folder and Dreamweaver CC connects to that site without any problem. It just isn't able to switch to //gs16/gs16/share/web/cvel. Dreamweaver CS5.5 and WSFTP don't seem to have any problem with this.
Unfortunately, I can't send you the .ste file, because the password can't be shared. I appreciate your help though!
Maybe you are looking for
-
ALE throws dump Message_Type_X
Hi All, I did ALE configuration on my DEV and PRD for transferring data from DEV to PRD. Although i know, we should not move any data from DEV to PRD, but it's client requirement. So i did ALE and model view successfully generated on DEV and RFC is p
-
Can i still use Fast Web View for PDF/A files?
Can i still use Fast Web View for PDF/A files? In other words, just becasue I am using PDF/A, can I still select the page i need in a long document and see it before the entire file has loaded?
-
Blog Post: Employees Sample Data Simplified
Employees Sample Data Simplified: http://tylermuth.wordpress.com/2010/02/16/employees-sample-data-simplified/ Tyler Muth http://tylermuth.wordpress.com "Applied Oracle Security: Developing Secure Database and Middleware Environments": http://sn.im/ao
-
Win XP Client Cannot Connect to Mac OS X 10.4.4 Server but Win 2000 Can
Anyone run into this problem? Just basic Apple/Windows stand alone, no domain or interaction with other Windows Servers. User can log on fine with Windows 2000 client, but same user cannot connect with Windows XP client on same network. Any workaroun
-
any help would be much appreciated!