I Book Dropped In Bath
My son has dropped my I Book G3 in the bath and its soaked, can it be repaired? or is a new 1 required, 4 little green lights are on the back of the casing so can some 1 also tell me what they are as they all lit up before it no longer worked, its totally soaked can it be dried out and work again/? also the data can thta be retrieved or is the machine no longer worth it
Even if it is repairable, it may well not be cost effective from the insurance company's point of view because who knows how long it might keep working. They wouldn't want to put money into it and then have it fail again and ultimately have to replace it anyway. And some repairs such as the logic board can be pretty expensive, even assuming they can find good parts. It may well work after drying out, and then fail later. Since you are documenting the accident, I think any future failure could be blamed on the bath unless it just works for years and years--which I think unlikely.
Anyway, good luck with this!
Similar Messages
-
hi there every one i have a iphone 5s i have drop in bath 16 time got it to work evry time at work monday on a diger fell out off pocket and smashed the screen i had passworld on it i need to do back up on itunes but i cannot because password needed
It sounds like it is too late to back up. Did you not think of that the first 16 times? It is probably no good anyway due to corrosion from the water all those times. Buy a new phone.
Cheers
Pete -
Address Book dropping addresses
I have noticed over the past year but thought I was hallucinating that my Address Book loses some entire contacts after I backup, I believe. I've excluded the usual culprits, I updated, reinstalled the OS but it happens frequently.
The only pattern I notice is tat I use the Phew backup program to backup. Maybe that's it. Has anyone had trouble with it?
Can someone recommend a backup that works well and includes preferences, preferably free?That's the reason I left Comcrap. Never a solution. Never a straight answer. Always blaming some one else.
-
Ok, so my macbook pro was open on my desk and a textbook (like one of those heavy history books) fell off my shelf and slammed onto the tracker pad of my computer...do you think since there's no obvious/apparent damage right now, that my computer will be fine? Thanks!
I suppose if it's working fine now, it's OK.
-
'Other Address List' not showing in Address Book
I'm trying to create an customized address list that will appear in the address book. I've placed the contacts into a contacts folder, and placed this contacts folder into a .pst file. This way, I can distribute this .pst file for others to use the same
address list.
I'm aware that I have to tick 'Show this folder as an e-mail Address Book', under the properties of the contact folder.
This address book does show up under 'Other Address List' -> name of the address book, when we look at the address book drop down list. This is when I only have 1 email account under the same Outlook profile.
When I have more than 1 email account under the same Outlook profile, this address list shows itself under the 2nd email account, and not 'Other Address List'.
Is this by design or could it be a bug? Is there a way to fix this / any workarounds? Thank you!
FYI I am waiting for verification of my account as I can't post pictures or links. I've already completed verification by clicking the link. Maybe there's a delay somewhere.
Update : images uploaded.Hi,
I tested this issue and I can reproduce it in my environment. However, as far as I know, this behavior won't affect the usage of the address book.
I searched the internal resource but I cannot find a bug report regarding this issue. If you have any suggestion about this issue, you can submit a feedback via:
http://office.microsoft.com/en-US/suggestions.aspx
Best Regards,
Steve Fan
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
Address Book empty, not allowing imports
Following upgrade to Lion my desktop address book is empty. Big problem, because this is the one used by mail and for other purposes. The address book is successfully populated in iCloud and on my iPhone, it's just the desktop address book that is empty.
I exported all the address cards from iCloud to desktop, then double-clicked to open them in address book. Nothing happened.
Would like to populate the address book via import, but that option is grayed-out on the address book drop-down menu. Pressing option-O (the import shortcut) achieves nothing.
In systems settings > iCloud, "Contacts" is checked - so what appears in iCloud and iPhone should be appearing on my desktop.
I have no idea why my desktop address book is empty, or why it is refusing imports. Any ideas?EDIT: Read next post first.
Create a new User go to System Preferences > Users & Groups > "+" (make it an admin acct) and test the appin this new account, if it works the problem is isolated to your User and not systemwide.
If you reinstall and migrate back your Users you'll be in the same place if the issue is isolated to your User.
If the issue is limited to your user account try starting up in Safe Mode (It will take more time to startup because it runs a directory check.)
If AB functions correctly that way, go to System Preferences >> Accounts >> Login Items and remove them. -
Shared Address Books in Outlook 2010
Outlook 2010 Scenario:
I have a group of users that would like share an address book between 5 users.
(Users are all in the sales department.)
One user (Sales Rep A) created an address book and shared out the address book to the 4 users.
Sales Rep A has even given “editor” file permissions to the other users so they can update contact information and has verified that the contacts folder is marked as “Outlook address book”.
When you go click on “Address book” in Outlook – then the Tools menu – Options ….I don’t see any option to add the address book.
(No way to browse)
Although, the other 4 users can see it the address book on the navigation pane, but when you open a new message and click “TO”, they would like to see
it listed under the address book drop down list. (Where you normally would see the GAL listed).
Things I have tried:
Created sharing invitation for other 4 users in group.
Verified properties and made sure the check was in front of “show this folder as an email address book”.
I have created a new profile and still don’t see the address book listed.
One solution I thought of was Public folders, but I thought I read somewhere they were going way…is that true???
We are using a domain.
We are also using WinXP, Outlook 2010, and Exchange 2010.
Please also note we are also running Word 2007, Excel 2007, PPT 2007.
References:
http://answers.microsoft.com/en-us/office/forum/office_2010-outlook/windows-7-outlook-2010-cannot-add-contact-folder/0e071a3f-ff23-46f0-8f1e-9f9160fc3f05
http://www.howto-outlook.com/Faq/contactsinaddressbook.htm
http://office.microsoft.com/en-us/outlook-help/share-a-contacts-folder-with-others-HA001234174.aspx
http://www.slipstick.com/emo/2002/up020410.htm#adshare
http://social.technet.microsoft.com/Forums/en-US/outlook/thread/8a7ec965-57a7-4a08-962e-916e358703c0/
Can you assist?
Thanks!Look in the Addressing, if you go to Tools, you should see all the available address books and in what order that Outlook searches through them. You should be able to add the extra address book there.
-
Just downloaded an audio book on my PC. Synced everything up on my ipad, but cannot locate it. Looked online and it says I need to choose the Audio Book drop down from the 'more' tab in music.... But this 'more' tab doesn't exist. Why/How have apple made this so ridiculously difficult??
Apple hasn't made it difficult. It's actually quite easy. The More tab only shows if you have successfully transferred the audiobook to your iPad. If not, there are enough "slots" to fit all the other tabs. So something has gone wrong. Take a look at this to be sure you are correctly selecting and syncing the audiobook to your iPad. You didn't mention if you are on Mac or PC, so pick your flavor below:
iTunes 11 for Mac: Add iBooks and audiobooks to iPod, iPhone, or iPad
iTunes 11 for Windows: Add iBooks and audiobooks to iPod, iPhone, or iPad -
Installed too many fonts into font book, HELP!!!
Hello community!
A friend of mine gave me a folder with nearly 3000 fonts. I mistakenly opened my font book, dropped folder onto the app, and voila I thought my new mac had 3000 cool new fonts! Little did i know it seemed to slow down every program and when i tried to pull the folder that my friend gave me with all of the fonts to the trash and empty, it said everything was in use so i couldn't.
When I tried to open the Font Book and delete it there font book just stalls and doesn't respond. One thing i've done so far is start up my computer holding shift (safe mode?). When i did this the folder my friend gave me was no longer on the desktop, and I couldn't seem to open Font Book in that mode. I then restarted and turned my computer back on in safe mode. The good news is it seems my programs aren't trying to use the 3000 fonts, and the folder seemed to have disappeard from my desktop. The bad news is Font Book still wont open, and i can see it is still recognising that the folder exist because it shows up on the side bar before is stops responding. Please help!!!
-DanielThe font collection files are probably damaged. If you have a backup, do this:
1) Boot into Safe Mode.
2) In your user account, open the ~/Library/FontCollections/ folder (the ~ means your home account, you won't find a folder by that name)
3) Delete all of the .collection files.
4) Copy all of the same files from your backup into the folder.
5) Restart
If you don't have a backup, you can still just delete all of the .collection files. They have no special purpose. They're just the default sets OS X installs, and none of them are necessary for OS X or Font Book to operate.
If you prefer, move the .collection files to the desktop, then launch Font Book. If it works as expected, then one or more of those files are damaged. You can try putting them back one at a time (shutting down Font Book each time, putting one back, then launching again to test). When Font Book balks, the last one you put back is junk. -
Exchange 2010 - Offline Address Book and Global Address List Issue!
I don't think I'm going crazy but cant find out why this is happening?
When I search the Address book in cached mode (OAB) in outlook for "Jackie W"
I get a number of users which include "Jackie W***"
but some are "Jackie K***" or "Jackie B***"
but their Office is set to "Westminster"
But this is the strange part when I search on the address book with Cached mode disabled (GAL) I only get users with Surnames begging with
"W" so only "Jackie W***" show up and if I just type in "Westminster" I get users form that location! but not a mix like on the OAB! Also when using the OAB if I type
"Jackie West" it brings up the Jackie from Westminster but this dose not happen when using the GAL because there is no
"Jackie West" in the Address book?
To my knowledge the OAB is just a Copy of the GAL that updates every 24 hours, and should be the same (give or take a few starters and leavers in the last 24 hours) and should pull up the same information when searching is this correct or am I going crazy!
:D
Technical Beta Tester || Matthew John Earley BSc (hons) || www.o0MattE0o.myby.co.ukHi MattE,
Does it happen for each Outlook profile you have, from every user account which is on Cached Mode.
A.If not then I believe OAB copy is either corrupted or Out of date.
Checking it on OWA would confirm the actual GAL data.(Similar to Online Exchange)
Client side update runs by default at Startup and every 24hrs , if skipped it will wait for next day or manual update.
1.In Outlook 2010, select the File tab in the upper left corner, then Download Address Book from the Account Settings drop down menu.
Outlook 2007 users should select Tools from Outlooks uppermost menu, then Send/Receive and Download Address Book from the Tools drop down menus.
2.The Offline Address Book window will appear. Make sure the following options are selected:
##De-check the Download changes since last Send/Receive option
##Make sure Full Details is selected
##Make sure the \Global Address List is selected from the Choose address book drop down menu
Q: How frequently is the offline address book updated on the Outlook client?
A: If left constantly running, Outlook in cached mode automatically updates the offline address book on the client every 24 hours. The 24-hour time period is measured from the time that the offline address book was last downloaded successfully. For example, if you complete an offline address book download at 09:00 today, Outlook will start the offline address book download the next day at approximately 09:00. Therefore, different people will receive updates at different, random times.
Note The default setting on the Exchange computer is to generate an offline address book differential file every morning at 04:00. For a change that is made in Active Directory to reach the client computer, the following events must occur:•The change must be picked up by the Exchange computer that generates the offline address book files. This can take several hours. At worst, it can take 24 hours. This variable will be referred to as "x."
•The Outlook clients must download the offline address book updates every 24 hours. This update can take several hours. At worst, it can take 24 hours. This variable will be referred to as "y."
The update reaches the client machines x+y hours later. It would be rare for a client to ever experience a 48-hour delay or more unless there were some Active Directory or public folder replication issues.
B.If yes, then there is a issue with OAB generation, that needs further troubleshooting depending on the distribution structure used Public Folder based or EWS.
• Try following:
EMC > Organization configuration > Mailbox > Offline address book.
Then right click on "Default offline addressbook" and select properies.
Click on "Distribution" tab, and untick "Enable public folder distribution". Click "Apply" and "OK"
Update the Address Book. Let replication finish.
Now go back to same location and tick "Enable public folder distribution" back again. Click "Apply" and "OK".
Here is a old times article I like:
Offline Address List Generation Overview
http://blogs.msdn.com/b/dgoldman/archive/2005/03/31/overview-of-the-oabgen-process.aspx
One More Old but relevant:
Administering the offline address book in Outlook
http://support.microsoft.com/kb/841273
Regards,
Satyajit
Please “Vote As Helpful”
if you find my contribution useful or “Mark As Answer” if it does answer your question. That will encourage me - and others - to take time out to help you. -
How can apply query in Hibenrate?
Hi !
I am using Hibenrate.and i need to know how to provide CRUD operation in Hibenrate.
I write the code for Inserting data in table.but when i want to read data there is a probs...
i have one table named book in My Sql server 5.0. in which id and bookname two fields are there...
now i have created 4 files...
1. Book.java (Entity beans)
2. book.hbm.xml (configuration beans with table in db)
3. IdIncrementExample.java (java file from which i am applying CRUD operation)
4. hibernate.cfg.xml (hibernate configuration)
Now the code is as follow.....
1. Book.java
public class Book {
private long lngBookId;
private String strBookName;
* @return Returns the lngBookId.
public long getLngBookId() {
return lngBookId;
* @param lngBookId The lngBookId to set.
public void setLngBookId(long lngBookId) {
this.lngBookId = lngBookId;
* @return Returns the strBookName.
public String getStrBookName() {
return strBookName;
* @param strBookName The strBookName to set.
public void setStrBookName(String strBookName) {
this.strBookName = strBookName;
2. book.hbm.xml
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="Book" table="book">
<id name="lngBookId" type="long" column="id" >
<generator class="increment"/>
</id>
<property name="strBookName">
<column name="bookname" />
</property>
</class>
</hibernate-mapping>
3. hibernate.cfg.xml
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/test</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">root</property>
<property name="hibernate.connection.pool_size">10</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<!-- Mapping files -->
<mapping resource="book.hbm.xml"/>
</session-factory>
</hibernate-configuration>
4. IdIncrementExample.java
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import java.io.*;
import org.hibernate.*;
import java.util.*;
* @author Administrator
public class IdIncrementExample {
public static void main(String[] args) {
Session session = null;
DataInputStream din =new DataInputStream(System.in);
String B_Name=new String();
int B_No;
try{
// This step will read hibernate.cfg.xml and prepare hibernate for use
SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
session =sessionFactory.openSession();
Transaction txsave = session.beginTransaction();
//Create new instance of Contact and set values in it by reading them from form object
System.out.println("Inserting Book object into database..");
Book book = new Book();
book.setStrBookName("Tutorial");
session.saveOrUpdate(book);
System.out.println("Book object persisted to the database.\n\n");
txsave.commit();
System.out.println(" Save Completed");
Transaction txupdate = session.beginTransaction();
System.out.print("Please Enter The Book No :: ");
B_No = Integer.parseInt(din.readLine());
String SQL_QUERY ="update Book set bookname= 'Hackers' where id= :va";
// System.out.println("\n String is :: " + SQL_QUERY);
int p= session.createQuery(SQL_QUERY)
.setString("va","6")
.executeUpdate();
for(Iterator it=query.iterate();it.hasNext();)
System.out.println("First");
Book b1=(Book)it.next();
System.out.println("ID: " + b1.getStrBookName());
System.out.println("Name: " + b1.getStrBookName());
book.setLngBookId(B_No);
System.out.print("Please Enter The Book Name :: ");
B_Name = din.readLine();
book.setStrBookName(B_Name);
session.saveOrUpdate(book);
System.out.println("Book object persisted to the database.");
txupdate.commit();
session.close();
}catch(Exception e){
System.out.println(e.getMessage());
}finally{
and when i run this code at that time the following errors ill genrate.....
init:
deps-jar:
Compiling 1 source file to C:\Documents and Settings\Administrator\My Documents\Hibernate\build\classes
Note: C:\Documents and Settings\Administrator\My Documents\Hibernate\src\IdIncrementExample.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
compile:
run:
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
Inserting Book object into database..
Hibernate: select max(id) from book
Book object persisted to the database.
Hibernate: insert into book (bookname, id) values (?, ?)
Save Completed
5
Exception in thread "main" java.lang.NoClassDefFoundError: antlr/ANTLRException
at org.hibernate.hql.ast.ASTQueryTranslatorFactory.createQueryTranslator(ASTQueryTranslatorFactory.java:35)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:74)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)
at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)
at IdIncrementExample.main(IdIncrementExample.java:58)
Please Enter The Book No ::
Java Result: 1
BUILD SUCCESSFUL (total time: 54 seconds)
I am using Netbeans 5.5
and the sql file which is....here...
SQLyog - Free MySQL GUI v5.15
Host - 5.0.24-community-nt : Database - test
Server version : 5.0.24-community-nt
SET NAMES utf8;
SET SQL_MODE='';
create database if not exists `test`;
USE `test`;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO';
/*Table structure for table `book` */
DROP TABLE IF EXISTS `book`;
CREATE TABLE `book` (
`id` int(5) NOT NULL,
`bookname` varchar(20) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `book` */
insert into `book` (`id`,`bookname`) values (1,'abc');
insert into `book` (`id`,`bookname`) values (2,'Hibernate Tutorial');
insert into `book` (`id`,`bookname`) values (3,'sds');
insert into `book` (`id`,`bookname`) values (4,'Hibernate Tutorial');
insert into `book` (`id`,`bookname`) values (5,'Tutorial');
insert into `book` (`id`,`bookname`) values (6,'Tutorial');
insert into `book` (`id`,`bookname`) values (7,'Tutorial');
insert into `book` (`id`,`bookname`) values (8,'Tutorial');
insert into `book` (`id`,`bookname`) values (9,'Tutorial');
insert into `book` (`id`,`bookname`) values (10,'Tutorial');
insert into `book` (`id`,`bookname`) values (11,'Tutorial');
insert into `book` (`id`,`bookname`) values (12,'Tutorial');
insert into `book` (`id`,`bookname`) values (13,'Tutorial');
insert into `book` (`id`,`bookname`) values (14,'Tutorial');
insert into `book` (`id`,`bookname`) values (15,'Tutorial');
insert into `book` (`id`,`bookname`) values (16,'Tutorial');
SET SQL_MODE=@OLD_SQL_MODE;
test is the database name......and book is the table name...
=======================================================
can any one help me......I was kind of kidding as I've written one and therefore have a vested interest.
However, hibernate.org should be your first port of call.
The creators of Hibernate have written a tome called "Java Persistence with Hibernate" that I've not read, but which has good reviews so far. They also wrote "Hibernate In Action" which is good, but slightly out of date. I'd also say that that one's only so-so for beginners.
My book is Beginning Hibernate, which I think is good for (duh) beginners.
There are others, but I don't feel obliged to try and sell you them as the ones I've read are mediocre.
D. -
Permission issues accross schemas to load XMLTYPE column - structured storage
Hi,
We have a table in BIUSER schema this table is object-realtionally stored with XMLs. When we are trying to load receords from ETLUSER schema we are getting the error as
Record 1: Rejected - Error on table "BIUSER"."PWAYWORKFILE_TABLE".
ORA-00604: error occurred at recursive SQL level 1
ORA-01031: insufficient privileges
Heres the oracle installation details
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
"CORE 11.2.0.3.0 Production"
All the records are moving to the bad file, whereas the same load happens normally in its own schema i.e. BIUSER
Suspecting this as permission issues we have already given the permission to the table sysnonym as given below in the registration script.
We googled and found few things about ACLs that we are not sure of , its that is the issue please let us know if this table can be created and loaded from different schema
Heres the table creation and registration script
set echo on
spool regschema.log
set define on
set timing on
set long 100000 pages 0 lines 256 trimspool on timing on
drop table PWAYWORKFILE_TABLE;
drop sequence PWAYWORKFILE_TABLE_SEQ;
begin
dbms_xmlschema.deleteschema('workfile.xsd',dbms_xmlschema.DELETE_CASCADE);
end;
begin
dbms_xmlschema.deleteschema('TotalLoss.xsd',dbms_xmlschema.DELETE_CASCADE);
end;
begin
dbms_xmlschema.deleteschema('Salvage.xsd',dbms_xmlschema.DELETE_CASCADE);
end;
begin
dbms_xmlschema.deleteschema('rate.xsd',dbms_xmlschema.DELETE_CASCADE);
end;
begin
dbms_xmlschema.deleteschema('notes.xsd',dbms_xmlschema.DELETE_CASCADE);
end;
begin
dbms_xmlschema.deleteschema('Image.xsd',dbms_xmlschema.DELETE_CASCADE);
end;
begin
dbms_xmlschema.deleteschema('Event.xsd',dbms_xmlschema.DELETE_CASCADE);
end;
begin
dbms_xmlschema.deleteschema('estimate.xsd',dbms_xmlschema.DELETE_CASCADE);
end;
begin
dbms_xmlschema.deleteschema('CoTotals.xsd',dbms_xmlschema.DELETE_CASCADE);
end;
begin
dbms_xmlschema.deleteschema('corr.xsd',dbms_xmlschema.DELETE_CASCADE);
end;
begin
dbms_xmlschema.deleteschema('Admin.xsd',dbms_xmlschema.DELETE_CASCADE);
end;
begin
dbms_xmlschema.deleteschema('Vins.xsd',dbms_xmlschema.DELETE_CASCADE);
end;
begin
dbms_xmlschema.deleteschema('commonType.xsd',dbms_xmlschema.DELETE_CASCADE);
end;
declare
V_XML_SCHEMA_NAME VARCHAR2(700) := 'commonType.xsd';
V_XML_SCHEMA XMLType := xmlType(BfileName('XSD_DIR',V_XML_SCHEMA_NAME),nls_charset_id('AL32UTF8'));
V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'commonType.xsd';
BEGIN
DBMS_XMLSCHEMA_ANNOTATE.printWarnings(FALSE);
DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.SETTIMESTAMPWITHTIMEZONE(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.SETTIMESTAMPWITHTIMEZONE(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => V_SCHEMA_LOCATION_HINT
,SCHEMADOC => V_XML_SCHEMA
,LOCAL => TRUE
,GENTYPES => TRUE
,GENTABLES => TRUE
,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
end;
declare
V_XML_SCHEMA_NAME VARCHAR2(700) := 'Admin.xsd';
V_XML_SCHEMA XMLType := xmlType(BfileName('XSD_DIR',V_XML_SCHEMA_NAME),nls_charset_id('AL32UTF8'));
V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'Admin.xsd';
begin
DBMS_XMLSCHEMA_ANNOTATE.printWarnings(FALSE);
DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.SETTIMESTAMPWITHTIMEZONE(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => V_SCHEMA_LOCATION_HINT
,SCHEMADOC => V_XML_SCHEMA
,LOCAL => TRUE
,GENTYPES => TRUE
,GENTABLES => TRUE
,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
end;
declare
V_XML_SCHEMA_NAME VARCHAR2(700) := 'CoTotals.xsd';
V_XML_SCHEMA XMLType := xmlType(BfileName('XSD_DIR',V_XML_SCHEMA_NAME),nls_charset_id('AL32UTF8'));
V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'CoTotals.xsd';
begin
DBMS_XMLSCHEMA_ANNOTATE.printWarnings(FALSE);
DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.SETTIMESTAMPWITHTIMEZONE(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => V_SCHEMA_LOCATION_HINT
,SCHEMADOC => V_XML_SCHEMA
,LOCAL => TRUE
,GENTYPES => TRUE
,GENTABLES => TRUE
,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
end;
declare
V_XML_SCHEMA_NAME VARCHAR2(700) := 'Event.xsd';
V_XML_SCHEMA XMLType := xmlType(BfileName('XSD_DIR',V_XML_SCHEMA_NAME),nls_charset_id('AL32UTF8'));
V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'Event.xsd';
begin
DBMS_XMLSCHEMA_ANNOTATE.printWarnings(FALSE);
DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.SETTIMESTAMPWITHTIMEZONE(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => V_SCHEMA_LOCATION_HINT
,SCHEMADOC => V_XML_SCHEMA
,LOCAL => TRUE
,GENTYPES => TRUE
,GENTABLES => TRUE
,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
end;
declare
V_XML_SCHEMA_NAME VARCHAR2(700) := 'Image.xsd';
V_XML_SCHEMA XMLType := xmlType(BfileName('XSD_DIR',V_XML_SCHEMA_NAME),nls_charset_id('AL32UTF8'));
V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'Image.xsd';
begin
DBMS_XMLSCHEMA_ANNOTATE.printWarnings(FALSE);
DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.SETTIMESTAMPWITHTIMEZONE(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => V_SCHEMA_LOCATION_HINT
,SCHEMADOC => V_XML_SCHEMA
,LOCAL => TRUE
,GENTYPES => TRUE
,GENTABLES => TRUE
,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
end;
declare
V_XML_SCHEMA_NAME VARCHAR2(700) := 'Salvage.xsd';
V_XML_SCHEMA XMLType := xmlType(BfileName('XSD_DIR',V_XML_SCHEMA_NAME),nls_charset_id('AL32UTF8'));
V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'Salvage.xsd';
begin
DBMS_XMLSCHEMA_ANNOTATE.printWarnings(FALSE);
DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.SETTIMESTAMPWITHTIMEZONE(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => V_SCHEMA_LOCATION_HINT
,SCHEMADOC => V_XML_SCHEMA
,LOCAL => TRUE
,GENTYPES => TRUE
,GENTABLES => TRUE
,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
end;
declare
V_XML_SCHEMA_NAME VARCHAR2(700) := 'TotalLoss.xsd';
V_XML_SCHEMA XMLType := xmlType(BfileName('XSD_DIR',V_XML_SCHEMA_NAME),nls_charset_id('AL32UTF8'));
V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'TotalLoss.xsd';
begin
DBMS_XMLSCHEMA_ANNOTATE.printWarnings(FALSE);
DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.SETTIMESTAMPWITHTIMEZONE(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => V_SCHEMA_LOCATION_HINT
,SCHEMADOC => V_XML_SCHEMA
,LOCAL => TRUE
,GENTYPES => TRUE
,GENTABLES => TRUE
,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
end;
declare
V_XML_SCHEMA_NAME VARCHAR2(700) := 'Vins.xsd';
V_XML_SCHEMA XMLType := xmlType(BfileName('XSD_DIR',V_XML_SCHEMA_NAME),nls_charset_id('AL32UTF8'));
V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'Vins.xsd';
begin
DBMS_XMLSCHEMA_ANNOTATE.printWarnings(FALSE);
DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.SETTIMESTAMPWITHTIMEZONE(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
-- DOM Fidelity enabled due to presence of mixed text, substitution group heads, or repeating choice structures in complex type defintion :-
DBMS_XMLSCHEMA_ANNOTATE.enableMaintainDOM(V_XML_SCHEMA,'RefurbMgr',TRUE);
select /*+ NO_XML_QUERY_REWRITE */
XMLQuery(
'declare namespace xdb = "http://xmlns.oracle.com/xdb"; (:
copy $NEWSCH := $SCHEMA modify (
let $MODEL := $NEWSCH/xs:schema/xs:complexType[11]/xs:all
return (
replace value of node $MODEL/xs:element[2]/xs:complexType/@xdb:maintainDOM with "false",
replace value of node $MODEL/xs:element[3]/xs:complexType/@xdb:maintainDOM with "false",
replace value of node $MODEL/xs:element[4]/xs:complexType/@xdb:maintainDOM with "false"
return $NEWSCH'
passing V_XML_SCHEMA as "SCHEMA"
returning content
into V_XML_SCHEMA
from dual;
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => V_SCHEMA_LOCATION_HINT
,SCHEMADOC => V_XML_SCHEMA
,LOCAL => TRUE
,GENTYPES => TRUE
,GENTABLES => TRUE
,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
end;
declare
V_XML_SCHEMA_NAME VARCHAR2(700) := 'corr.xsd';
V_XML_SCHEMA XMLType := xmlType(BfileName('XSD_DIR',V_XML_SCHEMA_NAME),nls_charset_id('AL32UTF8'));
V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'corr.xsd';
begin
DBMS_XMLSCHEMA_ANNOTATE.printWarnings(FALSE);
DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.SETTIMESTAMPWITHTIMEZONE(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => V_SCHEMA_LOCATION_HINT
,SCHEMADOC => V_XML_SCHEMA
,LOCAL => TRUE
,GENTYPES => TRUE
,GENTABLES => TRUE
,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
end;
declare
V_XML_SCHEMA_NAME VARCHAR2(700) := 'estimate.xsd';
V_XML_SCHEMA XMLType := xmlType(BfileName('XSD_DIR',V_XML_SCHEMA_NAME),nls_charset_id('AL32UTF8'));
V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'estimate.xsd';
begin
DBMS_XMLSCHEMA_ANNOTATE.printWarnings(FALSE);
DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.SETTIMESTAMPWITHTIMEZONE(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => V_SCHEMA_LOCATION_HINT
,SCHEMADOC => V_XML_SCHEMA
,LOCAL => TRUE
,GENTYPES => TRUE
,GENTABLES => TRUE
,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
end;
declare
V_XML_SCHEMA_NAME VARCHAR2(700) := 'notes.xsd';
V_XML_SCHEMA XMLType := xmlType(BfileName('XSD_DIR',V_XML_SCHEMA_NAME),nls_charset_id('AL32UTF8'));
V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'notes.xsd';
begin
DBMS_XMLSCHEMA_ANNOTATE.printWarnings(FALSE);
DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.SETTIMESTAMPWITHTIMEZONE(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => V_SCHEMA_LOCATION_HINT
,SCHEMADOC => V_XML_SCHEMA
,LOCAL => TRUE
,GENTYPES => TRUE
,GENTABLES => TRUE
,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
end;
declare
V_XML_SCHEMA_NAME VARCHAR2(700) := 'rate.xsd';
V_XML_SCHEMA XMLType := xmlType(BfileName('XSD_DIR',V_XML_SCHEMA_NAME),nls_charset_id('AL32UTF8'));
V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'rate.xsd';
begin
DBMS_XMLSCHEMA_ANNOTATE.printWarnings(FALSE);
DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.SETTIMESTAMPWITHTIMEZONE(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => V_SCHEMA_LOCATION_HINT
,SCHEMADOC => V_XML_SCHEMA
,LOCAL => TRUE
,GENTYPES => TRUE
,GENTABLES => TRUE
,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
end;
declare
V_XML_SCHEMA_NAME VARCHAR2(700) := 'workfile.xsd';
V_XML_SCHEMA XMLType := xmlType(BfileName('XSD_DIR',V_XML_SCHEMA_NAME),nls_charset_id('AL32UTF8'));
V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'workfile.xsd';
begin
DBMS_XMLSCHEMA_ANNOTATE.printWarnings(FALSE);
DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.SETTIMESTAMPWITHTIMEZONE(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
-- Out-of-Line mappings for 1000 Column optimization :-
DBMS_XMLSCHEMA_ANNOTATE.setOutOfLine(V_XML_SCHEMA,DBMS_XDB_CONSTANTS.XSD_COMPLEX_TYPE,'WorkfileType', 'AdminComp','ADMINCOMP_XML');
DBMS_XMLSCHEMA_ANNOTATE.setOutOfLine(V_XML_SCHEMA,DBMS_XDB_CONSTANTS.XSD_COMPLEX_TYPE,'WorkfileType', 'NotesComp','NOTESCOMP_XML');
DBMS_XMLSCHEMA_ANNOTATE.setOutOfLine(V_XML_SCHEMA,DBMS_XDB_CONSTANTS.XSD_COMPLEX_TYPE,'WorkfileType', 'SalvageComp','SALVGCOMP_XML');
DBMS_XMLSCHEMA_ANNOTATE.setOutOfLine(V_XML_SCHEMA,DBMS_XDB_CONSTANTS.XSD_COMPLEX_TYPE,'WorkfileType', 'CorrComp','CORRCOMP_XML');
DBMS_XMLSCHEMA_ANNOTATE.setOutOfLine(V_XML_SCHEMA,DBMS_XDB_CONSTANTS.XSD_COMPLEX_TYPE,'WorkfileType', 'ImageComp','IMAGECOMP_XML');
DBMS_XMLSCHEMA_ANNOTATE.setOutOfLine(V_XML_SCHEMA,DBMS_XDB_CONSTANTS.XSD_COMPLEX_TYPE,'WorkfileType', 'EventInterfaceManagerComp','EVIFCMGRCOMP_XML');
DBMS_XMLSCHEMA_ANNOTATE.setOutOfLine(V_XML_SCHEMA,DBMS_XDB_CONSTANTS.XSD_COMPLEX_TYPE,'WorkfileType', 'TotalLossComp','TOTALLOSSCOMP_XML');
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => V_SCHEMA_LOCATION_HINT
,SCHEMADOC => V_XML_SCHEMA
,LOCAL => TRUE
,GENTYPES => TRUE
,GENTABLES => TRUE
,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
end;
-- Table creation for namespace "http://www.cccis.com/Pathways/Workfile"
set lines 80
CREATE TABLE "PWAYWORKFILE_TABLE"
SequenceID NUMBER,
DL_CLM_FOLDER_ID VARCHAR2(30),
CUST_CLM_REF_ID VARCHAR(25),
ems_file_nm varchar2(256),
EST_IND VARCHAR2(3),
rec_dt date default sysdate,
filesent_datetime date,
CLM_TYP_CD VARCHAR2(2 CHAR),
WORKFILE XMLTYPE
XMLTYPE COLUMN WORKFILE
STORE AS OBJECT RELATIONAL
XMLSCHEMA "workfile.xsd" ELEMENT "PwayWorkfile"
create sequence PWAYWORKFILE_TABLE_SEQ
start with 1
increment by 1
nomaxvalue
create trigger PWAYWORKFILE_TABLE_TRIGGER
before insert on PWAYWORKFILE_TABLE
for each row
begin
select PWAYWORKFILE_TABLE_SEQ.nextval into :new.SequenceID from dual;
end;
desc PWAYWORKFILE_TABLE
/* create synonym */
create or replace public synonym PWAYWORKFILE_TABLE for PWAYWORKFILE_TABLE;
grant select on PWAYWORKFILE_TABLE to BIUSER_RO;
grant select, insert, update,delete on PWAYWORKFILE_TABLE to biuser_full;
exit;
Regards,
ArghyadipHi MarcoGralike,
I have finally acquired a sample schema and xmls to reproduce the errors that i am getting even after acquiring XDBADMIN privilege and registering my schema as GLOBAL.
Here's the problem i am facing, whenever i intend to store the PublisherList (publisher.xsd) out of line while registration i am running into insufficient privilege issues even if i have the schema registered using (LOCAL => FALSE), whereas it runs smooth in BIUSER and if i dont set it out of line it works in ETLUSER as well.
Here are the 2 XSD files
books.xsd --- this is the root element
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" version="1.0" xdb:storeVarrayAsTable="true">
<xs:include schemaLocation="publisher.xsd"/>
<xs:element name="books" type="bookType"/>
<xs:complexType name="bookType" abstract="true">
<xs:sequence>
<xs:element name="author" type="xs:string" minOccurs="0"/>
<xs:element name="title" type="xs:string" minOccurs="0"/>
<xs:element name="genre" type="xs:string" minOccurs="0"/>
<xs:element ref="PublisherList" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
publisher.xsd -- this is a child elelment which in my actual scenario is so big that i must keep it out of line during registration
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" version="1.0" xdb:storeVarrayAsTable="true">
<xs:element name="PublisherList" type="PublisherListType"/>
<xs:complexType name="PublisherListType">
<xs:sequence>
<xs:element name="Name" type="xs:string" minOccurs="0"/>
<xs:element name="Office" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
Here's the sample XML
<?xml version="1.0"?>
<books xmlns:xs="http://www.w3.org/2001/XMLSchema">
<author>Writer</author>
<title>The First Book</title>
<genre>Fiction</genre>
<PublisherList>
<Name>Penguin</Name>
<Office>London</Office>
</PublisherList>
</books>
Here's how i am registering the Schemas in BIUSER which has XDBADMIN privilege
DROP TABLE BOOKS_TABLE;
begin
dbms_xmlschema.deleteschema('books.xsd',dbms_xmlschema.DELETE_CASCADE);
end;
begin
dbms_xmlschema.deleteschema('publisher.xsd',dbms_xmlschema.DELETE_CASCADE);
end;
declare
V_XML_SCHEMA_NAME VARCHAR2(700) := 'publisher.xsd';
V_XML_SCHEMA XMLType := xmlType(BfileName('XSD_DIR',V_XML_SCHEMA_NAME),nls_charset_id('AL32UTF8'));
V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'publisher.xsd';
begin
DBMS_XMLSCHEMA_ANNOTATE.printWarnings(FALSE);
DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.SETTIMESTAMPWITHTIMEZONE(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => V_SCHEMA_LOCATION_HINT
,SCHEMADOC => V_XML_SCHEMA
,LOCAL => FALSE
,GENTYPES => TRUE
,GENTABLES => TRUE
,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
end;
declare
V_XML_SCHEMA_NAME VARCHAR2(700) := 'books.xsd';
V_XML_SCHEMA XMLType := xmlType(BfileName('XSD_DIR',V_XML_SCHEMA_NAME),nls_charset_id('AL32UTF8'));
V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'books.xsd';
begin
DBMS_XMLSCHEMA_ANNOTATE.printWarnings(FALSE);
DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.SETTIMESTAMPWITHTIMEZONE(V_XML_SCHEMA);
DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
DBMS_XMLSCHEMA_ANNOTATE.setOutOfLine(V_XML_SCHEMA,DBMS_XDB_CONSTANTS.XSD_COMPLEX_TYPE,'bookType', 'PublisherList','PUBLISHERLIST_XML');
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => V_SCHEMA_LOCATION_HINT
,SCHEMADOC => V_XML_SCHEMA
,LOCAL => FALSE
,GENTYPES => TRUE
,GENTABLES => TRUE
,ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
end;
CREATE TABLE BOOKS_TABLE
BOOKS XMLTYPE
XMLTYPE COLUMN BOOKS
STORE AS OBJECT RELATIONAL
XMLSCHEMA "books.xsd" ELEMENT "books"
DROP PUBLIC SYNONYM BOOKS_TABLE;
create or replace public synonym BOOKS_TABLE for BOOKS_TABLE;
grant select, insert, update,delete on BOOKS_TABLE to ETLUSER;
Heres the ctl file that i am using
Load_Books.ctl
OPTIONS (ERRORS=100000, SILENT=(HEADER,FEEDBACK),ROWS=500, BINDSIZE=3072000 , READSIZE=3072000)
load data
infile '/apps/dev/PWXML-10/ctl/load_xml.txt'
BADFILE '/apps/dev/PWXML-10/ctl/load_xml.txt.bad'
DISCARDFILE '/apps/dev/PWXML-10/ctl/load_xml.txt.dsc'
append
into table BOOKS_TABLE
filename filler char(120),
BOOKS lobfile(filename) terminated by eof)
'/apps/dev/PWXML-10/ctl/load_xml.txt' would contain the XML file path that i gave
Heres how i am loading the XML through sqlldr in ETLUSER
sqlldr etluser/etluserpassword@MYXMLDBNAME control=Load_Books.ctl log=Load_Books.ctl.log
Here's the error i am getting
Record 1: Rejected - Error on table "BIUSER"."BOOKS_TABLE".
ORA-00604: error occurred at recursive SQL level 1
ORA-01031: insufficient privileges
Hopefully i have given you all the set up required to pin point the evil error.
Please let me know if i have missed something. -
Public Folders not visible in outlook 2010 for some
Migrated exchange 2007 to 2013. I know Public Folders are a mailbox now.
My question is why do some users with outlook 2010 see the Public Folders under "Tasks" on the left vertical bottom of outlook with "Folder List" highlighted and other DON'T -They just don't see anything under "Tasks" on the
left vertical bottom of outlook with "Folder List" highlighted
Also (in a newly created email) if they go to the address book drop down click on Public Folders entry its empty.
any help would be appreciated
RJMHi RJM,
Except above links, I also recommend you refer to the following article to migrate the PF from exchange 2007 to 2013:
http://blogs.technet.com/b/meamcs/archive/2013/07/25/part-4-step-by-step-exchange-2007-to-2013-migration.aspx
Check the status
Once the migration reached the AutoSuspended state as shown below, proceed to the next steps, otherwise you must wait as this may take some time based on your PF size.
Get-PublicFolderMigrationRequest | Get-PublicFolderMigrationRequestStatistics
Lock Down PF for Migration (Down time is required, as during this phase PF will bot be accessible for all users)
Set-OrganizationConfig -PublicFoldersLockedForMigration:$true
Set-PublicFolderMigrationRequest -Identity \PublicFolderMigration -PreventCompletion:$false
Resume-PublicFolderMigrationRequest -Identity \PublicFolderMigration
Test and Unlock the PF Migration
I will configure a test user to use the new PF using the following command:
Set-Mailbox -Identity mohsaeed -DefaultPublicFolderMailbox mailbox1
Open the test user mailbox and run some tests: Create new post, view old posts, check permissions
If all tests passed successful proceed to next step.
Get-Mailbox -PublicFolder | Set-Mailbox -PublicFolder -IsExcludedFromServingHierarchy $false
Set-OrganizationConfig -PublicFolderMigrationComplete:$true
Best regards,
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
Niko Cheng
TechNet Community Support -
Extracting data from multiple tables, avoiding duplicates.
Hi
I currently have two tables called Book and JournalPaper, both of which have a column called Publisher. Currently the data in the Publisher column is the Publisher name that is entered straight into either table and has been duplicated in many cases. To tidy this up I have created a new table called Publisher where each entry will have a unique ID.
I now want to remove the Publisher columns from Book and JournalPaper, replace it with an ID foreign key column and move the Publisher name data into the Publisher table. Is there a way I can do this without duplicating the data as some publishers appear several times on both tables?
Any help with this will be greatly appreciated as my limited SQL is not up to this particular challenge!!!
JudeJude,
SQL> create table book as
2 select 1 id, 'Book 1' name, 'A' publisher from dual union all
3 select 2 id, 'Book 2' name, 'B' publisher from dual union all
4 select 3 id, 'Book 3' name, 'A' publisher from dual union all
5 select 4 id, 'Book 4' name, 'B' publisher from dual
6 /
Tabel is aangemaakt.
SQL> create table journalpaper as
2 select 1 id, 'Journal Paper 1' name, 'A' publisher from dual union all
3 select 2 id, 'Journal Paper 2' name, 'B' publisher from dual union all
4 select 3 id, 'Journal Paper 3' name, 'C' publisher from dual union all
5 select 4 id, 'Journal Paper 4' name, 'C' publisher from dual
6 /
Tabel is aangemaakt.
SQL> select * from book
2 /
ID NAME PUBLISHER
1 Book 1 A
2 Book 2 B
3 Book 3 A
4 Book 4 B
SQL> select * from journalpaper
2 /
ID NAME PUBLISHER
1 Journal Paper 1 A
2 Journal Paper 2 B
3 Journal Paper 3 C
4 Journal Paper 4 C
SQL> create sequence publisher_seq start with 1 increment by 1
2 /
Reeks is aangemaakt.
SQL> create table publisher
2 ( id number
3 , name varchar2(50)
4 )
5 /
Tabel is aangemaakt.
SQL> insert into publisher
2 select publisher_seq.nextval, publisher
3 from ( select publisher from book
4 union
5 select publisher from journalpaper
6 )
7 /
3 rijen zijn aangemaakt.
SQL> alter table publisher add constraint publisher_pk primary key (id)
2 /
Tabel is gewijzigd.
SQL> alter table book add (publisher_id number)
2 /
Tabel is gewijzigd.
SQL> alter table book add constraint book_publisher_fk
2 foreign key (publisher_id) references publisher(id)
3 /
Tabel is gewijzigd.
SQL> alter table journalpaper add (publisher_id number)
2 /
Tabel is gewijzigd.
SQL> alter table journalpaper add constraint journalpaper_publisher_fk
2 foreign key (publisher_id) references publisher(id)
3 /
Tabel is gewijzigd.
SQL> update book b
2 set b.publisher_id = (select p.id from publisher p where p.name = b.publisher)
3 /
4 rijen zijn bijgewerkt.
SQL> update journalpaper j
2 set j.publisher_id = (select p.id from publisher p where p.name = j.publisher)
3 /
4 rijen zijn bijgewerkt.
SQL> alter table book drop column publisher
2 /
Tabel is gewijzigd.
SQL> alter table journalpaper drop column publisher
2 /
Tabel is gewijzigd.
SQL> select * from publisher
2 /
ID NAME
1 A
2 B
3 C
SQL> select * from book
2 /
ID NAME PUBLISHER_ID
1 Book 1 1
2 Book 2 2
3 Book 3 1
4 Book 4 2
SQL> select * from journalpaper
2 /
ID NAME PUBLISHER_ID
1 Journal Paper 1 1
2 Journal Paper 2 2
3 Journal Paper 3 3
4 Journal Paper 4 3Regards,
Rob. -
i am trying to drop a column from a table which in not primary key.
alter table books
drop column retail
it gives the error that "missing keyword"
what is wrongWhat is version of oracle, i am on 9i
pleae check here
SQL> desc tb
Name Null? Type
COL1 VARCHAR2(15)
ID NUMBER
1* alter table tb drop column col1
SQL> /
Table altered.
SQL> desc tb
Name Null? Type
ID NUMBER
Maybe you are looking for
-
I changed my id. When I want, now, update my apps I'm asked my pwd corresponding to my old id. I forgot this old pwd and can(t get it from apple. It seems the old id doesn(t exist anymore. What should I do? J'ai changé mon id. Je veux mettre à jour m
-
Filemaker Pro 7 will not open in all my accounts.
Files open normally in all accounts except 1 account where Filemaker crashes upon program startup. Same exact files opens fine in 1 account, crashes program in the other. Deleted prefs, plist, etc. Stumped!!!! Program works fine in all accounts excep
-
HT2513 Events added to shared iCloud Calendar first
When I have a shared iCloud calendar, any event I add to my calendar gets added to the shared calendar first, even if I have my default calendar set to something else. This is really annoying as other people are being notified of all meetings, even i
-
Authentication for user xyz denied in realm wl_realm
Hi I encounter this exception when my application tries to perform a jndi lookup for an ejb service. How do I grant the user access?I am currently running WL61SP1 on WLCSSP2. Any help is appreciated. Thanks.
-
Why are my purchased songs?
Why are my purchased songs not showing up on my phone under Purchased? I downloaded one song yesterday from my phone and that showed up but I purchased and downloaded 4 songs today on my computer from iTunes and now they are now showing up.. WHY/////