Saving an index ddl and restore it
HI during our ETL load we need to drop the index and then after the load recreate it.
So we are doing a procedure that will store all the ddl of the corresponding index so the interface will be something like
savedropidx(schema_name,table_name,index_name)
savedropidx(schema_name,table_name) --all the index of that table
savedropidx(schema_name) --all the index of that schema
restoreidx(schema_name,table_name,index_name)
restoreidx(schema_name,table_name) --all the index of that table
restoreidx(schema_name) --all the index of that schema
we would use dbms_metadata to get the ddl. and store it onto the table and when the bulk load is done we restore those indexes based on the saved ddl definition
Is this a good approach or another alternative approach ?
Also if there is foreign key involved this can be hairy ? any thought on that one ?
actually it looks like it can be only run as sys or invoker. so is there a way I can still run it as pl/sql using dbms_metadata and not login as sys ??
the approach we thought in mind will not work as roles are disabled..
From dbms_metadata 11g release 2 doc.
In stored procedures, functions, and definers-rights packages, roles (such as SELECT_CATALOG_ROLE) are disabled. Therefore, such a PL/SQL program can only fetch metadata for objects in its own schema. If you want to write a PL/SQL program that fetches metadata for objects in a different schema (based on the invoker's possession of SELECT_CATALOG_ROLE), you must make the program invokers-rights.
Similar Messages
-
What is restoring and why do i 'have' to restore to connect to iTunes and can I really get all my stuff back because I have a homework essay saved on my notepad and all my apps and music. Help I don't know what to do!
Unless this program will get the iPod out of recovery mode
RecBoot: Easy Way to Put iPhone into Recovery Mode
You will have to restore and thus erase the iPod. If you stuff is in a backup y can restore from backup. Otherwise it is lost. -
My computer crashed saved the music in my music can ijust plug the ipod in and restor itunes
my computer crashed saved the music in my music can ijust plug the ipod in and restor itunes
"has a back up of my music been created as i purchased them through itunes yet not plugged my ipone into my computer since purchasing the music?"
No. You would have to plug it in and transfer the purchases.
" all my music was on my old phone and not in my itunes library."
Why? This should never be the case. EVERYTHING on your iphone should always be on your computer and included in your regular backup of your computer.
You buy one and only one download. It is your responsibility to copy/move/backup your music.
You can try contacting itunes support and asking for an exception, but they are under no obligation to allow.
http://www.apple.com/support/itunes -
I restored my iPad and then repurchased App Pages. But I am not able to find my data saved with Pages before the restore. qwn
Those sites take a long time to load for me (almost a minute)
Reload web page(s) and bypass the cache.
*Press and hold Shift and left-click the Reload button.
*Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
*Press "Cmd + Shift + R" (MAC)
Clear the cache and the cookies from sites that cause problems.
"Clear the Cache":
*Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
"Remove Cookies" from sites causing problems:
*Tools > Options > Privacy > Cookies: "Show Cookies" -
I dropped my iphone 4s in water yesterday. Got out my old 3g to use temporarily. I synced it to itunes and restored from backup. However, none of my pictures or text messages transferred to the 3g. Did I do something wrong? Why won't those transfer? I had just synced my 4s over the weekend. Everything I have read says to just hit restore and it should have restored to what was on my 4s. Can someone please tell me if I've lost those things forever?
Thank you.I'd review these articles
http://support.apple.com/kb/HT1766
http://support.apple.com/kb/HT2109
If you got a replacement iPhone 4s or iPhone 5 you could restore the backup of the damaged 4s device to either device. -
Saving and restoring JTable layout
Users can manipulate a JTable by resizing reordering columns.
I want to be able to save the layout of the table and restore it the next time a user runs the application.
I've gotten it to work for column sizing, but what do I interrogate to find out how a user has reordered the columns?but what do I interrogate to find out how a user has reordered the columns?Look at the TableColumnModel to see the current order of the columns.
-
Mac started hanging up while streamlining a kids show. Restarted and got the screen with the apple and the circle. restarted with control-option p and r. Ran disk repairitem got the following results;
invalid index key,
it rebuilds catalog b-tree,
volume repair complete,
updating boot support partitions for the volume as required,
Error disk utility can't repair disk
I'm then prompted to back up all files, reformat the disk and restore backed up files.
Obviously need help here as I think I'm in danger of losing my files, photos etc if I don't do this right.
Can anyone help
SteveYou might want to back up the disk as soon as possible, do the repair, then back it up again. First time will have the issues that Disk Utility can't fix, however, you'll have the data saved. Then, once you get things repaired, make a new backup, and go from there.
If you're going to use a hard drive directly connected to your iMac for backup, this is what I mentioned earlier: http://twelvesouth.com/products/backpack/ Great way to use space behind the iMac without adding something else to the desk top. You can buy it through Apple online/stores or Amazon, and there are probably other sources too.
For external hard drives, I like those sold by OWC at http://eshop.macsales.com/shop/firewire/ as many of them use Oxford chip sets, wihch work well with macs (I've used several for years with no issues). Most pre-packaged drive/cases have a 3 year warranty, although you can buy a case and add your own hard drive. I like Western Digital Scorpio Blacks that have a 5 year warranty. -
BPC backup and restore Q&A...
Dear all:
See below, and please share your knowledge!
Situation
We are in the phase of modifying existing structure. We would like to back up what's in the Production server, and restore onto Development Box and develop and test our modification there using the latest data we have.
Data
We have a production server, which SQL service and BPC service are running on separate physical server (as I was told), and a development box, which SQL and BPC are running together in one box.
A_PRODUCTION is the App Set in the Production Server
A_DEV is the App Set in the Development Box.
Below are what I have done and failed:
1.
a. I used "Server Manager" to back up A_PRODUCTION.
b. I then copied and pasted the backup folder (in which has Web, File, SQL etc sub folders) to the Development Box.
c. I used "Server Manager" to restore by selecting the backup folder. The Server Manager was able to allocate all the backup files and SQL db.
d. My Web and File folders are OKed during restore, but my SQL restore failed with an error message.
2.
a. We tried to open SQL Server Management Studio, and manually restore the A_PRODUCTION SQL backup (*.BAK) to A_DEV of Development box.
b. We received the error message, System.Data.SqlClient.SqlError: RESTORE detected an error on page (0:0) in database "A_PRODUCTION" as read from the backup set. (Microsoft.SqlServer.Smo).
c. We went to option and checked "Overwrite existing database" and still failed to restore.
3.
a. I logged on to Development Box's BPC Web Admin, and tried to create an App Set that has the same name A_PRODUCTION as my live database in the Production Server.
b. The App Set creation failed at OLAP service with an error message saying something about "SalesPerson" column was not found or something.
c. I noticed that a database named A_PRODUCTION is created Development Box.
d. I tried method 1 and 2 again to A_PRODUCTION of the Development Box and failed.
Question
What is wrong with my approach?
I have referenced the document https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20a26f50-4252-2a10-8c97-a2c7058cd804, and am confused why we have to backup the master database.
Secondly, in the document, quoted "Restore Microsoft SQL Server 2005 Database(s): Restore the most recent database backup for APPSERVER, and each of the application set databases.
(ApShell/ApShellExtra)", what is the difference between "the most recent database backup for APPSERVER", and "each of the application set databases"?
At last, in the document, quoted "You must use an u2018Open File Agentu2019 to backup Data files that may be in use by the web server.", what does it mean by using an Open File Agent? Is it a type of agent in SQL backup service, or an agent in general that is able to back up open files?
Thank you!Kranthi and Akim:
Thanks for the reply...
Kranthi: With BPC Admin ID, I did go back to *BPC Administration\Manage Security* and re-saved the configuration, and I did see the table update in *Database Engine\AppServer\tblAppSetAccess*. I could then grant my Windows ID rights to "everything", but was only able to access BPC Administration.
Akim: Can you be more specific about delete/recreate orphaned users? Did you mean deleting/creating via SQL Analysis Services AppServer\tblAppSetAccess, or via BPC Administration\Manage Security? In addition, when you mentioned "reset permissions from the application itself", did you mean to modify Task, Member Access Profile, Team, and User, and re-save them again with the same settings?
I am sorry that this thread has become longer than expected. Here are some updates:
1. I have two Application Sets which my Windows ID can access: AppShell (default) and App_Dev
2. I tried to create a new Application Set "App_Dev1" by copying from App_Dev (unchecked database,biz process flows, content library, and live reports). Then I logged in as BPC Admin and added my Windows ID to the System Admin Team, which was modified to have full access to everything. Again the same problem occured -- I could access App_Dev1's BPC Administration area but could not access BPC Excel; same error messages popped out.
3. I tried to create a new Application Set "AppShell1" by copying from AppShell (same unchecked everything). Then I logged in as BPC Admin and added my Windows ID to the System Admin Team, which was modified to be able to access everything. Same result as #2
4. I tried to add myself to the System Admin Team of original AppShell, and I could open BPC Excel.
My experiments so far concluded the followings:
--No problem with App_Dev and AppShell in the Development Box
--I could grant myself access to everything in any new Application Set, but only was able to access BPC Administration
--BPC Admin ID and my Network Administrator (Domain Admin)'s Windows ID has no problem opening BPC Excel in any Application Set.
What concerns me now is that even a copy from AppShell is not working as expected... My Network Administrator said it is not an easy process to reinstall BPC Development Server, but I think that's perhaps the only way to fix everything, if the root causes remain mysterious.
If you have any insightful tip, please share with me as I have spent over a week and cannot progress further... Thank you!!!!
Brian -
IPhoto won't open after new install and restore of back-up
Hi guys
My hard drive just died (for the second time in 6 months!) so I have just gotten the computer back with a new drive. I did a new install of Tiger from my original install CDs, did the download thing to get all the updates, and ran a "restore" from my external drive using iBackup (http://www.grapefruit.ch/iBackup//index.html) to restore all my previous system settings, documents, etc. So far this seems to have worked well, a couple of 3rd party applications didn't re-install - specifically Neo Office and WiFind - but I was able to manually install those and everything seems to be working fine.
Except iPhoto. It won't open. When I click the dock icon it bounces once and does nothing. No little arrow under it or anything. Nothing at all happens when I click the icon in Finder (in the Applications folder). When I searched it in spotlight it told me there was a file called iphoto.crash.log, so I went and had a look at that hoping it would tell me the problem, but I don't understand it. I'm not particularly good at the behind the scenes stuff with computers.
Wondering what I should do now - if someone can perhaps interpret the log file and find the issue if that would help, or if I should uninstall and re-install iPhoto by itself (and if so, how?), or if there is something else that may be causing the issue. I noticed there are a few files relating to it when I search with spotlight but I don't know which of them might be relevant. I could post a screenshot if that is allowed, or post the log file if it would help?
Thanks in advance for any advice or help!
Regards,
Chloë400 Updates???
Did you Repair Permissions before & after each one?
The usual reason why updates fail or mess things up, or things don't load/run, is if Permissions are not fixed before & after every update, with a reboot... you may get a partial update when the installer finds it doesn't have Permissions to change one obscure little part of the OS, leaving you with a mix of OS versions.
Some people get away without Repairing Permissions for years, some for only days.
If Permissions are wrong before applying an update, you could get mixed OS versions, if Directory is the slightest messed up, who knows!
If many Permission are repaired, or any Directory errors are found, you may need to re-apply some the latest/biggest updates again, or even do an A&I if you have enough free disk space.
The combo update for PowerPC-based Macs...
http://www.apple.com/support/downloads/macosx10411comboupdateppc.html
The combo update for Intel-based Macs...
http://www.apple.com/support/downloads/macosx10411comboupdateintel.html
Repair Permissions before & after re-install, then reboot again each time.
If all the above do not resolve the problem, then it's time for an Archive & Install, which gives you a new OS, but can preserve all your files, pics, music, settings, etc., as long as you have plenty of free disk space...
http://docs.info.apple.com/article.html?artnum=107120
I only use Software Update to see what is needed, then get them for real via...
http://www.apple.com/support/downloads/
That way I can wait a week or so, check the forums for potential problems, and get Permissions & such in order before installing. -
Can I clone one Mac and restore to another?
My wife has a 2005 17" CD MBP running Tiger which has seen better days and will probably soon give up the ghost. As a short term solution I was thinking of making a clone of the hard drive and restoring it onto a spare 2007 15" C2D MBP that we have.
Will this work or will the different chipsets cause problems?
I intend to use superduper as I already have a licence for this but was wondering if the clone that is made is machine specific, or will it not work because of the different chipsets.
If this doesn't work would another option be to load Tiger onto the spare MBP and then use migration assistant to copy?
Thanks in advance.Looking at http://www.everymac.com/systems/apple/macbook_pro/index-macbookpro.html it seems that the MBPs in the year you provide could boot to 10.4.9 As long as you have it at least at that then you probably stand a reasonable chance. While installations are nominally machine specific, I am not sure how much they are really. I have taken drives from one machine and put them in a similar machine (e.g., Quicksilver 2000 to QS 2002) and had them run for years with no issues appear. The only thing you can do is try, but I'd say it had a good chance of working.
-
how do I access my iphoto library on time machine backup external drive using Lion, originally saved off old computer and system. It's not letting me open the folder???
Once again here's how to restore an iPhoto Library from Time Machine:
-
My first IPAD 2 wireless failed, so a second IPAD 2 was sent to me. I have game apps that aren't transfering at the levels I have achieved. Is there a way I can keep the game app levels where I am? ie, Planet fish< solitaire, Sudoku, bejeweled 2, shazam-(has saved my content)...so why has some of these not saved my content? Or is there something other than back up, syncing and restoring that will save what I have accomplished so far?
Thamks
CAssuming that the Library is intact, then simply drag the back up to your internal HD - put it on the desktop and open it, to make sure all is well:
Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Choose Library' and point it at the Library on the desktop.
If it is, trash the one in your Pictures Folder and put the restored one in its place.
Regards
TD -
Flashing question mark on screen. Can I still backup my files and restore my system?
Okay, so yesterday evening, I received a message from my teacher that I had to redo one of my papers because a program she used detected some copy paste information that was about 39% more than what she accepts and asked me to reword some of the information. When I started working on my paper to resubmit it to her, My laptop was freezing a lot in the middle of me working on my school paper. After a while, it completely froze to the point where I could no longer do anything and stayed frozen for hours on end. I couldn't even save my work which was very frustrating considering I wanted to get that done and out of the way. I felt that I had no choice but to force it to turn off and turn it back on. In the process of me doing so, a flashing file with a question mark came on in which I took the time to look up to see what it meant and how can I fix it. However, after many reading, I realized that if I reboot the system I will lose everything I have that's important to me (which technically is my school work, some photos, and licensing application). I never used the Time Machine when my laptop was up and running because I never understood it or knew how to use it. One of the things I read is that I am able to restore my laptop with Time Machine. But I was curious to know if I can still use Time Machine to backup and restore my laptop? I'm hoping I can as I really do not want to lose the information and files I have saved. Below are the basic information of my laptop. Please help!!!!
Screen Size
13.3 inches
Screen Resolution
1280x800
Max Screen Resolution
1280x800 pixels
Processor
2.5 GHz Intel Core i5
RAM
4 GB DDR3
Hard Drive
500 GB HDD 5400 rpm
Graphics Coprocessor
Intel HD Graphics 4000
Chipset Brand
Intel
Card Description
Intel HD 4000
Graphics Card Ram Size
128 MB
Wireless Type
802.11 a/b/g/n
Number of USB 2.0 Ports
2
Average Battery Life (in hours)
8 hours
Expand
Other Technical Details
Brand Name
Apple
Series
MacBook Pro
Item model number
MD101LL/A
Hardware Platform
Mac
Operating System
Mac OS X 10.8 Mountain Lion
Item Weight
4.5 pounds
Item Dimensions L x W x H
8.94 x 12.78 x 0.95 inches
Color
Silver
Processor Brand
Intel
Processor Count
1
Computer Memory Type
DDR3 SDRAM
Hard Drive Interface
Serial ATA
Hard Drive Rotational Speed
5400 RPM
Optical Drive Type
DVD+R DL
Audio-out Ports (#)
1
Power Source
DC
Voltage
100 voltsThe fact that you can boot into Recovery Mode, which is a hidden partition on your HD, means your HD is working, at least somewhat. Since your main concern is retaining the files that are important to you, what I'd suggest is creating a clone on a separate, external HD. You can do that by booting into Recovery again, partitioning the external with a GUID partition table and creating at least one partition for a clone (3TB externals are pretty inexpensive these days and you could have plenty of partitions large enough to hold what's on your internal drive) and using "Restore" in DU with the internal as the source and the external partition as the target. With that done, see if you can boot from that external clone. If you can't, go back to Recovery, and, instead of Disk Utility, choose Reinstalling the OS but with the clone you just made as the target. When that's done, see if you can boot from the external, and if you can, you will have a working bootable backup of your internal and all your files. You can then wipe the internal and Restore to the internal by using Restore in Disk Utility in Recovery Mode with the external as the source and the internal as the target. Normally, I'd suggest just reinstalling the OS on the internal, but if there's something wrong with the drive, you may risk making things worse, and first priority is to protect your files.
-
In reference to question the computer gave no warning but lost internet connectivity. I shut down for a while and when returned it would only boot to gray logo screen with spinning gear. Ran disk utility and on Mac HD drive it stopped after "Updating boot support partitions as required". Then in red: Error: Disk utility can' repair this disk ....disk, and restore backed up files. I'm running OS X 10.8 and had just updated the iOS about three days ago. Not familiar with reformat process on MacBook Pro and would like some ideas whether I should go to the Genius Bar here in Sydney or try it on my own. I have been using time machine to back up to a 1TB La Cie drive right up to the crash. Thanks for any advice.
Well it turned out the drive was shot. Took it to the genius bar yesterday and they ran a test on the drive before trying the restore routine again. Drive failed.
Replaced the drive and got the MBP back today. Pretty quick and decent service once you get an appointment.
Now having trouble figuring how to do the Time Machine saved files. Have several applications which I'd like to keep but not sure how to trans the apps from my backup to the new. Hunting for answers on that on the web.
Thanks for you help, Eustace. -
Bought late 2011 MBP 17" with Bootcamp partition (Windows 7 Ultimate) and Lion OS 10.7.3
I am trying to make a backup of Bootcamp partition before I start using my laptop but it proves to be a difficult task.
I don’t have any installation disk for Windows 7 and I am afraid that, if a disaster strikes and I loose the HDD, my copy of Windows will be gone.
The only way to restore Windows partition according to what I read so far is to do the following:
• Use Windows to backup data from BootCamp Partition
• Reinstall OS Lion formatting full hard drive in the process
• Use BootCamp Assistant to create BootCamp partition
• Install Windows 7 on bootcamp partion
• Use Windows 7 to restore data from backup file created in the first step
The only problem is that I don't any image or disk to re-install Windows 7. With Windows 7 I can create only 'repair disk' (for what it is worth) or system image but according to other users it would format the whole drive including OS Lion partition when reinstalling
Winclone 3.2 seems like the answer to my prayers but would like to hear from the users if it worked for them (most imprtantly, did the restore work?).Got the response from Winclone regarding my confusion in step 18 of the procedure to create bootcamp backup. The message displayed on the screenshot under step 18 can be ignored. It refers to creating a Windows partition using Boot Camp Assistant but in fact this partition has already been created in earlier steps using Disk Utility.
I bought Winclone 3.3 as it promises to make backup and restore of Bootcamp partition with Windows 7 on it really easy, the steps to do this task are easy and well documented, and the owner of the program was very prompt responding to my queries.
I performed the following as an insurance against disaster prior to creating Winclone image:
Since my Windows 7 came pre-installed but without any installation disk I used Windows 7 to create 'Windows 7 system image' . From what I read on forums the system image created using Windows 7 apparently can't be used to easily restore Boot Camp partition (as it wipes out OS X in the process). I created this image as a last resort backup rescue - some users reported that it can be used to recover Windows but the process is painful and involve a number of steps, swapping hard drives, and paid software to assist in the process. I did not bother to make notes on this process - thanks to Winclone I am not suppose to need this backup if everything works as promised
I also created 'Windows 7 repair disk' prior to running Winclone. Not sure what the value of it will be but again, this is something I did just in case I need it in the future
Then I installed Winclone 3.3 and created Windows 7 Ultimate Boot Camp image without any problems (on MBP running Lion 10.7.4). My Winclone image file of 150GB Windows 7 Boot Camp partition prior to installing any programs and without any data on it ended up being nearly 8GB (saved to the external USB HDD).
I have not restored and don't plan to restore the Winclone 3.3 image just to test if it works (don't want to risk loosing my perfectly well running Windows 7 in case of any disaster). So ultimately only time or experience of other users will tell me if I spent my money well buying Winclone 3.3. I know it worked for you JBLTZ so hopefully it will work for me when I need it one day.
Cheers
Swavek
Maybe you are looking for
-
Can you connect 2 ipods to the same computer?
my sister and i live together and share a computer (we're in college). i own a ipod mini and my sister just bought a fifth-gen ipod. is it possible for us to use the same computer and itunes and still have completely different music libraries (like i
-
I would like to see football on Apple TV
-
Hi, I have a cursor in my plsql and I am trying to get the record through a FOR loop. I know that for loop will take care of opening, fetching and closing the cursor implicitly. Ex. declare cursor c1 is select * from emp; begin for l_rec in c1 loop e
-
I keep getting the above error on all my SQL 2012 deployments (standard and enterprise) on all Windows Server 2012 Standard machines. I have already tried the following commands in administrator mode to resolve without success: lodctr bitsperf.dll lo
-
Propellerhead's Reason 4 with Logic Express 8
Hi, I cannot figure out how to open Propellerhead Reason 4 inside Logic Express 8. I need the instruments with Reason, so I can record in Logic Express 8. Reason works fine as a standalone, and I have been using Logic Express 8 since it came out. Tha