Script help -- to change the path of some script
hi
is it possible to make a script(perl or shell) which will change the location of sql script those are called from different shell script?
i have some shell script which is calling some sql scripts.now i need one script which will ask for the path of those script once and set the path of those sql script in those shell script.these shell script only containing a line
"sqlplus / as sysdba @<path of the sql script>/script.sql" now i need one script which will change <path of the sql script> .is it possible to do ??
i need some help from gurus ...
rgrds
Edited by: new2appsdba on Aug 20, 2010 7:16 PM
Hi
can you say how to pass this mpath to n number of shell script??
i need to update n number of script.ie. i need to pass $mpath variable to n number of script.
example:
profile_chk.sh contain only :
sqlplus apps/<pass> @/u02/uatdb/.DBA-Scripts/profile_chk.sqlprofile_chk.sql contain:
SELECT A.PROFILE_OPTION_ID,A.LEVEL_ID,A.LEVEL_VALUE,A.PROFILE_OPTION_VALUE,V.USER_PROFILE_OPTION_NAME
FROM APPS.FND_PROFILE_OPTION_VALUES A, APPS.FND_PROFILE_OPTIONS_VL V
WHERE A.PROFILE_OPTION_ID =V.PROFILE_OPTION_ID
AND V.USER_PROFILE_OPTION_NAME like '%Debug Log%';
select t.user_profile_option_name, profile_option_value
from apps.fnd_profile_options o
,apps.fnd_profile_option_values v
,apps.fnd_profile_options_tl t
where o.profile_option_id = v.profile_option_id
and o.application_id = v.application_id
and profile_option_value = 'Y'
and start_date_active = SYSDATE
and o.profile_option_name = t.profile_option_name
and level_id=10001
and (upper(t.user_profile_option_name) like '%PERSONALIZ%'
and upper(t.user_profile_option_name) not like '%PERSONALIZ%WYSIWYG%'
order by user_profile_option_name;
select t.user_profile_option_name, profile_option_value, application_name
from apps.fnd_profile_options o
,apps.fnd_profile_option_values v
,apps.fnd_profile_options_tl t
,apps.fnd_application_tl a
where o.profile_option_id = v.profile_option_id
and o.application_id = v.application_id
and profile_option_value = 'Y'
and start_date_active = SYSDATE
and o.profile_option_name = t.profile_option_name
and a.application_id = level_value
and level_id=10002
and t.language = a.language
and upper(t.user_profile_option_name) like '%PERSONALIZ%'
order by user_profile_option_name, application_name;now i need a script say install.sh
which will update the location of profile_chk.sql in the profile_chk.sh.
this install.sh will contain n numbers of
install -c profile_chk.sh /usr/bin so that all user can access this shell script as a command.
whenever the testing goes one server contains two instance so each everytime i need to monitor locks and invalid objects and etc so i need to use this scripts as a commands.for that reason i need this install -c for each scripts.and i need to visit different places also.so ineed this install.sh.my idea is basically work properly once and enjoy times lazily :-) so whenever i move to new place i shall only run this install.sh once and use those scripts lazily.
rgrds
Similar Messages
-
I changed the path of my photos, how can I find them from iPhoto
I didn't import my photos into the photo library,
now I changed the path of my photo,
how I can find them,
I have thousands of photos, I don't want to check one by one~I believe this is the post Larry's referring to:
Pascal Mah
Re: iPhoto '11 referenced library problems
Jul 27, 2011 4:28 PM (in response to Terence Devlin)
YES!!!
I finally managed to recover my iPhoto library!
But it was not easy. I had to hack into the database file to put up things right.
After a significant amount of trial-and-error, here is the procedure I came to, which finally worked for me (use at your own risk):
0. Make sure you make enough backups so as to revert to the previous state if something goes wrong!
1. Make a copy of your iPhoto Library [Show Package Contents]/Database/apdb/Library.apdb to your desktop.
This file contains most of the data involved for managing your iPhoto data.
2. Open this file using a SQLite database manager.
I used Navicat 9.1, which has nice import-export features. For direct editing, Base 2.0 is may be easier.
3. Open the table RKMaster.
This table contains all records for the individual pics of your library.
4. Correct the path of each of your pic files in the imagePath column to their current filepath.
This contains the path of your pic files at the time they were imported, and is not updated by iPhoto even though you have moved your pic files somewhere else.
If you have several thousands of paths to correct, a good idea is to export this column to a text file (also including the modelId column for referencing), and to correct paths using the substring Search&Replace function of your favorite text editor. Be sure to re-import the corrected data properly using the modelId column as references.
5. If needed, correct in the same manner the content of the fileVolumeUuid column to the value of the drive currently containing your picfiles.
If needed, obtain this value considering a pic which was recently imported from that drive.
6. If your drive name was modified, also correct its name in the name column of the RKVolume table.
Identify the proper record by considering its uuid previously obtained.
7. If you're happy with your work, quit the database managing program and put Library.apdb back in its original location inside your iPhoto Library.
Keep the older somewhere in case something goes wrong.
8. Run iPhoto to see if your work is successful!
At this point, you might consider rebuilding the Photo Library (hold alt-cmd while launching iPhoto) and choose Repair the iPhoto Library Database (Be sure to leave the Rebuild the iPhoto Library Database from automatic backup unchecked!). This might correct some possible unconsistencies resulting from your edits. Also, a good thing might be to rebuild all thumbnails. If iPhoto does not bug you for locating files during that process, you have possibly done your work right! If not, back to step 1.
As said, this worked for me, with no visible inconsistencies or side effects to be noticed in the behavior of iPhoto (at least for now). But possibly some knowledgable people might comment and improve that process, and some database script guru might also help automating this. Please comment.
Lessons learned (How I understand the things as far as I know):
A. Library.apdb stores the initial drive and path of the pic files at the time they were imported. This is not modified as the files are moved around.
B. Some other data (BLOBs?) is used to track the files at their actual location. Therefore, it seems OK to move the pic files after they were imported.
C. Unfortunately, this other data is broken if the file is recreated (even with same content and location), for example with a file-based backup and restore (Time Machine).
D. In that case, iPhoto is unable to recover the file if its current drive and path does not match the one when the file was imported, stored in the database. Also there is no mechanism in iPhoto to correct this data.
E. Therefore, it is very important to import pic files in iPhoto only when these are already in their final location! If not, your iPhoto Library won't survive a TimeMachine backup and restore! (Possibly, a block-based drive backup could work... I don't know).
F. ...And Apple should really, really fix this issue! (By correcting the stored filepath and drive to the current file location at least when the database is repaired, and by offering at least some basic file reconnection options).
OT -
Is there a way to change the path of the Skin and FLVPlayer .swfs in Dreamweaver?
Hi! I have a simple question that I can't seem to figure out. I know how to insert an flv via dreamweaver and it is very simple
see the code --
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="205" height="250" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=flash/flashvid eofile&autoPlay=false&autoRewind=false" />
<param name="swfversion" value="8,0,0,0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="FLVPlayer_Progressive.swf" width="205" height="250">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=flash/flashvid eofile&autoPlay=false&autoRewind=false" />
<param name="swfversion" value="8,0,0,0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
The question I have is... How do you change the path settings for the 2 required swfs (the skin swf and the player)? I would ideally like to have all my flash components including the skin swf and the player swf in the same folder as the flv (rather than have the swfs in the root of the same folder as my html doc), but everytime I try to adjust the path settings of the swfs in the above code I get a white screen.
hope this makes sense and is not confusing...
Any suggestions?
Thanks
-BrianHi Cashmoneydonuts,
You can create an animation for this using Edge Animate, and add it to Muse.
The following link might be helpful:
Liven up Adobe Muse CC sites with animated effects | Adobe Inspire Magazine
Regards
Sonam -
F4 Help to get the path for a File source directory
There are numerous function modules for browsing a particular file in desktop and getting the file path (including the fine name) , like F4_FILENAME , KD_GET_FILENAME_ON_F4 , WS_FILENAME_GET etc. But can anyone tell me how to fetch only the directory path to the field were the F4 help is given. Actually the filename has to come in some other field in the selection screen. Is there separate funtion modules for these OR will changing parameters in the above function modules work?
Pls Help....
Also are there function modules for providing F4 help for getting the path to a file in application directory?Try this method CL_GUI_FRONTEND_SERVICES.
It is a Global CLASS which is having different methods for different purposes
see the documentation of it and use the methods of it
see
CL CL_GUI_FRONTEND_SERVICES
Short Text
Frontend Services
Functionality
The class CL_GUI_FRONTEND_SERVICES contains static methods for the following areas:
File functions
Directory functions
Registry
Environment
Write to / read from clipboard
Upload / download files
Execute programs / open documents
Query functions, such as Windows directory, Windows version, and so on
Standard dialogs (open, save, directory selection)
Example
Determine the temp directory on your PC:
DATA: TEMP_DIR TYPE STRING.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GET_TEMP_DIRECTORY
CHANGING
TEMP_DIR = TEMP_DIR
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2.
IF SY-SUBRC 0.
Error handling
ENDIF.
flush to send previous call to frontend
CALL METHOD CL_GUI_CFW=>FLUSH
EXCEPTIONS
CNTL_SYSTEM_ERROR = 1
CNTL_ERROR = 2
OTHERS = 3.
IF SY-SUBRC 0.
Error handling
ENDIF.
WRITE: / 'Temporary directory is:', TEMP_DIR.
Notes
The class CL_GUI_FRONTEND_SERVICES is based on the Control Framework. See the documentation for more information, in particular on CL_GUI_CFW=>FLUSH which must be called after many CL_GUI_FRONTEND_SERVICES methods.
Migration Information
The old file transfer model was based on function modules of the function group GRAP. The old features have been replaced by the class CL_GUI_FRONTEND_SERVICES. The following list contains the old function modules (italic) and the new methods (bold) that replace them:
CLPB_EXPORT
CLIPBOARD_EXPORT
CLPB_IMPORT
CLIPBOARD_IMPORT
DOWNLOAD
GUI_DOWNLOAD, dialog replaced by FILE_SAVE_DIALOG
PROFILE_GET
No replacement, use REGISTRY_* methods instead
PROFILE_SET
No replacement, use REGISTRY_* methods instead
REGISTRY_GET
REGISTRY_GET_VALUE, REGISTRY_GET_DWORD_VALUE
REGISTRY_SET
REGISTRY_SET_VALUE, REGISTRY_SET_DWORD_VALUE
UPLOAD
GUI_UPLOAD, dialog replaced by FILE_OPEN_DIALOG
WS_DDE
Obsolete: This function is no longer supported.
SET_DOWNLOAD_AUTHORITY
Obsolete: This function is no longer supported.
WS_DOWNLOAD
GUI_DOWNLOAD
WS_DOWNLOAD_WAN
Obsolete: This function is no longer supported.
WS_EXCEL
Obsolete: This function is no longer supported.
WS_EXECUTE
EXECUTE
WS_FILENAME_GET
FILE_SAVE_DIALOG, FILE_OPEN_DIALOG
WS_FILE_ATTRIB
FILE_SET_ATTRIBUTES, FILE_GET_ATTRIBUTES
WS_FILE_COPY
FILE_COPY
WS_FILE_DELETE
FILE_DELETE
WS_MSG
Obsolete: This function is no longer supported.
WS_QUERY
CD (current directory)
DIRECTORY_GET_CURRENT
EN (read/write environment)
ENVIRONMENT_GET_VARIABLE
ENVIRONMENT_SET_VARIABLE
FL (determine file length)
FILE_GET_SIZE
FE (check if file exists)
FILE_EXIST
DE (check if directory exists)
DIRECTORY_EXIST
WS (determine Windows system)
GET_PLATFORM
OS (operating system)
GET_PLATFORM
WS_UPLDL_PATH
Obsolete: This function is no longer supported.
WS_UPLOAD
GUI_UPLOAD
WS_VOLUME_GET
Obsolete: This function is no longer supported.
Reward points if useful. -
Need help : for changing the flv movie size
i am loading my flv thogh xml link if load my flv the same
size what i kept in my folder using script shall i change the movie
size because lot of movies is loads dynmicaly i cannot go and
change each and evry movie
so some body can help me to change the movie - flv while it
loads.You should be able to change the product name in Google Cloud. The ChromeBook uses Google Cloud to print (Google Cloud uses HP ePrint). Log into your google account and change the printer name there.
I am an HP employee.
Opinions expressed are mine and do not necessarily reflect the opinions of HP.
Reminder: Please select the Accept as Solution button on the post that best answers your question. Also, you may select the Kudos button on any helpful post to give that person a quick thanks. -
We are having problems with multiple portal applications, spaces, and WebCenter Content all using JSESSIONID. I know you cannot change the name or path of the cookie in spaces and I know how it can be changed in the apps. I also know that Oracle do not recommend changing the name in UCM, which would be OK if we could change the path from "/" to something else...say "/cs". I have not been able to find a way to do this so any help would be appreciated.
BillHi Bill ,
I think the details in the following link will help you achieve this :
http://www.extended-content.com/logged-out-of-ucmwebcenter-content-after-opening-an-adf-page/
Thanks,
Srinath -
I cannot play music from my libray on either my external drive or my laptop. I keep getting the same message - "___ song (all of them) could not be used because the original file could not be found. Would you like to locate it?" I have changed the path several times under preferences and it still won't recognize any songs from either my laptop hard drive or my external drive. I can't play any music at all.
I think I've fixed this on my machine. If you look in the ITunes folder there is a subfolder called Previous iTunes Libraries. In my case for some reason this contained the one which had always worked and a new one was in the main folder. I closed iTunes, deleted the new one, and moved the old one back to the main folder, then opened iTunes. It then rebuilt the library and it plays correctly. Hope it works for you.
-
Dears ,,
how to change the path that sysprep were copied to reference computer when i capture the image from reference.
Should i modify some codes in LTIAPPLY.wsf? how to modify it?
Thanks.Sysprep and capture has *Three* steps.
1. Run sysprep on the local machine (easy).
2. Copy WinPE down to the local machine so we can reboot into winpe for capture.
3. Capture the drive in an *offline* state from within WinPE.
What is most likely happening is that you are having problems with step #2. 100MB is *WAY* too small to copy down WinPE. By default MDT will make this System partition much bigger, 499MB. IF you install Windows 7 from the default media. IT will only create
a 100MB partition.
By default MDT 2012 Update 1 and greater *should* recover to a fallback drive with the OS on it, however if you are running older versions that might not happen correctly.
If you are still having problems, copy your BDD.log file to a public share like OneDrive and copy the link here.
Keith Garner - keithga.wordpress.com -
How to change the path of the Transport
HI all!
I had the system of portal dev,qas,prd,I want to made the export folder of the dev point to the import folder of the qas.But how to change the path of the transport ?I change the file of the D:\usr\sap\dev\SYS\global\pcd\pcdStartup.properties,But it not useful.I think my type is not correct.Plz tell me the key.thanks very much!!!
D:\usr\sap\dev\SYS\global\pcd\pcdStartup.properties,I changed:
Transport Application
Root directory for exporting transport packages
#Pcd.TransportApplication.ExportRootDir=
qas\Import
Root directory for importing transport packages
#Pcd.TransportApplication.ImportRootDir=${Pcd.Share}/Import
Directory for temporary transport files
#Pcd.TransportApplication.TempDir =${Pcd.Temp}/transport
Edited by: joecui on Nov 12, 2008 8:15 AM
Edited by: joecui on Nov 12, 2008 8:16 AMDid you try to remove the "#" character before every line you changed?
Save the file...
Reload/Refresh it in the Portal...
Try if that helps you.
Cheers,
Benjamin -
I cannot find information to help me change the orientation of a video filmed in portrait format but it can only able to be played back lying on its side (landscape) instead of upright. All the rotation buttons for iPhoto are not 'engaged' when it is in video .
Thanks OT,
I tried the Export function but it would not allow me to choose the option of exporting to iMovie. I think you are right about needing Quicktime Pro. I opened iMovie and imported the clip from iPhoto and with some searching found the 'cropping, rotation' mechanism. So I now have a copy in the correct orientation. I plan to import/export it back to iPhoto because I want to have a copy on my iPhone to show people and I wanted to have it available as part of a slideshow I am making in iPhoto of my recent overseas trip. It is a pain that there is no simple orientating tool for the movie clips downloaded to iPhoto with the photos from the one camera. -
Trying to change the labels for some UI elements
hi,
Problem: I am trying to change the labels for some UI elements and transport the views from one server to another server.
the lables show changed in the source server but the changes dont reflect in the destination server
Kidly help me to slove this problemHi Sharad
The process is as explained:
1. Firstly, go to the respective view, and to the Label and then delete the Label Text as
mentioned in the attribute u2018TEXTu2019 of the Label in the view.
2. Next, Activate the View, if it asks for a change request, please assign it to a new TR.
3. Finally give the Label text again and then Save it and activate it.
4. Further transport the request to ECP and find the difference.
This especially happens when we frequently change the WD Component and embedd it entirely in the Transport.
I hope this information would be of a great help to all of us.
Ponts if helpful.
Regards
Roshan -
Change the path where i want to store the file
i want to get the name of the Directory Is there any FM to get it.
Means i have a scenario that I am trying to download a file from Application
server and i am trying to Download where ever i want to store..... So It has
to open a save Dialog box But by default the name of the file should same as
that of the application server filename. But i should be able to change the
Path where i want to store. Can any one help me out in this issue.Hi,
Please check this.
DATA: DIR TYPE STRING.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE
EXPORTING
WINDOW_TITLE = 'Select Folder'
INITIAL_FOLDER = 'C:'
CHANGING
SELECTED_FOLDER = DIR
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
others = 4.
Now that you have the directory, you can add the filename and save to the location.
Regards,
Ferry Lianto -
Accessin Access Database it changes the path by itself???
Hi to all. First of all I would like to apologize about the "zombie resurection". Sorry i didn't know.
I'm doing what HK_Developer said, but it doesn't work.
This is my code:
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
//Connection con = DriverManager.getConnection("jdbc:odbc:c:xxx.mdb", "myusr", "mypwd");
// or
Connection con = DriverManager.getConnection("jdbc:odbc:Driver={MicroSoft Access Driver (.mdb)};DBQ=C:/xxx.mdb","myusr","mypwd");
// i tried boths ways
Statement stat = con.createStatement();
stat.execute("select from articulos");
catch(Exception e){ jButton1.setText(e.getMessage());
jTextArea1.setText(e.getMessage());}
I don't know what is wrong but it gives me a message saying (more o less) that "o:/yyyy.mdb" is not a valid path. I don't know why it changes the path i use in the "getConnection" parameters. I don't kow where it cacth the "o:/yyyy.mdb".
Thank you very much.I finaly found the solution. My mistake.
The database i am accessing have some linked tables to another database. My statement is querying one of this tables. That is because te system returns me the message with another path.
Sorry. I'm newbie.
Thanks to all. -
my iphone does not sync with itunes on my second authorized computer, please help. i changed the first authorized computer in May 2012 and have been using the second authorized computer since then but it cannot sync - please help!!
"I was thinking I would just connect my iPhone and all of my music and other stuff would transfer to the new computer. "
Not true. The music and pic sync is one way - computer to iphone. The only exception is itunes purchases. Without syncing: File>Transfer Purchases
You really should transfer everything from the old computer, or your backup copy of your computer. Since you do not have access to the old computer, then use your backup copy of the old computer.
If for some reason you have failed to maintain a backup copy of your computer ( not good), then you would have to transfer itunes purchased as described earlier. Any other itunes content would be lost.
You can e-mail photo library pics to yourself, but they will not be of the original quality.
Before syncing, enter at least one unique contact and calendar entry on the computer. When you first sync, then you should get the option to merge the data. -
is there a way we can change the path of the songs to an external hard drive when we move the songs over? also, is there a way to delete multiple songs easily?
I recently moved my songs over for hard drive space. Really don't want to have to go back through each album, etc... to get that to work.
Last time I tried making a "library" that didn't work either.
On the topic of deleting multiple songs that are the same, is there an easier way then to select each one?
Seems to me apple isn't user friendlyWelcome to the world of digital media. Your can't really transfer it. I don't know what the rules are about transferring to your spouse but I do know that in some cases when you die, your heirs cannot inherit your digital media. This is why there is still an advantage to buying the CD since the usage rights belong to whomever holds the physical media.
A possible workaround is to burn the songs to a music CD with yout account (tracks only without song titles) and then having your wife upload it as a regular music CD onto her account. It's been a while since i've done this so I'm not sure if it would work now.
Please note that I'm not advocating copyright and/or TOS violations. I'm only suggesting ways to copy music for your own personal use which has traditonally been permitted. I only did this because I wanted to convert iTunes songs to mp3 files so I could burn them onto a data CD for use in my car. It would make sense that since married couples are a joint entity, this would be personal use.
Also, I'm not a lawyer so don't take this as legal advice.
Maybe you are looking for
-
How do I create a new movie in iMovie 10.0.2; problem with new event
AS many others are, I'm having trouble with imovie 10.0.2 When I try to Create a new movie, after I select a theme, a small box opens, asking for a name and which Event to use. The default event is "Updated Projects," and the dropdown arrows reveal
-
Second Exchange 2013 server in remote site
Just finished migrating from 2007 to 2013 and decommissioned 2007. Exchange 2013 is running in site A with 350 mailboxes on it. However, almost half of those users reside in site B so the plan is to introduce a second Exchange 2013 server to this s
-
I have been running I believe FF 6.3. I was getting nag popups to update FF. I went to help and used the selection there to up date. In doing so (more than once tryed this method) it would download and install like a usual update untill compleation.
-
How to obtain sufficient privileges to complete operation
I'm not sure this is the correct forum in which to post my question; if not, please direct me to the correct one or preferably, provide me with a solution to my problem/question. Thanks. As I attempt to copy/move files in Finder, many are completed b
-
I have a new 3 TB Western Digital ext. HD. I used Super Duper to clone my MacPro HD to the ext. HD. I want to be certain that I can use it as a Startup disk in an emergency. To test this, I wanted to restart with the new drive as the startup disk. T