Get the sql files
I'm new in Oracle. And I need to get the sql file of a database which already created so that I can use this sql file to create all the tables or modify some of the fields easily.
How to get started? Any recommend documents?
When you install oracle 8i you will get some testing users with example tables like 'scott' user, if you install oracle 9i, you will have HR and other testing users with data and tables. You can start from there.
http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96590/toc.htm
Similar Messages
-
How to get the SQL file name in SQL*plus
hi all,
I have created two sql file at C drive as "c:\Createtable.sql" and "c:\Deletetable.sql"
afterwards i open
C:\>sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jan 30 11:37:10 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter user-name: scott/tiger
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> @C:\Createtable.sql'
Table created.
SQL> @'C:\Deletetable.sql'
Table dropped.
SQL>My problem is to get the name of the file as "c:\createtable.sql" and "C:\Deletetable.sql" in sql*plus enviornment.
Thanks & Regards
SinghDear Damorgan,
>>your version number to three decimal places
My Oracle DB Version i have already stated in my previous post is 10.2.0.1.0
Actually my problem is to get the sql files name we run in sqlplus enviornment with @ symbol. like
i have created one sql file in c drive as
"C:\Createtable.sql"
afterwords i have connected to sqlplus as
sql> conn scott/tiger
sql>@c:\createtable.sql
Now i want some query to get the name of the file which is run.
In actual my problem is as
i have suppose 10 or more SQL files in some folder ( sql1.sql, sql2.sql, sql3.sql ....).
i created one file to call all the 10 sql files (main.sql)
i have also one track_table which will keep track that which sql file is runned.
I want some automated script which will insert the record in that track_table....... for that i need the name of sql file which is runned.
Hope this will help you.
Thanks & Regards
Singh -
How to get the EXCEL file from web site (b2b) into SAP system?
Hi Guys,
I have a requirement of saving the excel file that has been send to SAP system from a B2B site.
Currently there is a call to the SAP system from the B2B site via an RFC function ,this RFC functions gets the excel file as an input to the SAP system,i need to store this Excel file in the SAP (as an excel file itself).
How can i acheive this?
Please suggest.
Thanks ,
SwatiYou can extract a date portion and assign to the variable and then compare with GETDATE()
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Where is the sql file store in & Where can I find php.ini on Mac osx client
In windows xp i can find the sql file in side the folder of MySQL and I can find php.ini in the C directory under the php's folder but in mac os Icannot find it could anyone tell me where it is and how can I find thanks.
Hi--
apples-Computer:/usr/local/mysql apple$ cd data
-bash: cd: data: Permission denied
apples-Computer:/usr/local/mysql apple$ sudo sh
Password:
apples-Computer:/usr/local/mysql apple$ cd data
-bash: cd: data: Permission denied
apples-Computer:/usr/local/mysql apple$ cd data
-bash: cd: data: Permission denied
apples-Computer:/usr/local/mysql apple$ chmod +rw
data
chmod: data: Operation not permitted
It looks to me like you haven't gained root access in the examples above. If you follow Niel's example:
<pre class="command">sudo sh</pre>you should get a different prompt when you actually are the root user:
<pre class="command">sh-2.05b#</pre>because you'd be changing shells from bash to sh.
I'd like to set the folder /mysql/data to except me
for coppy database folder
How can I get the permittion to access the
/mysql/data folder
You should be able to do anything to those files without changing permissions if you're the root user.
But, just for your information, I never directly move the database files. If I want to move a database between computers, I always use the mysqldump command and redirect it to a file:
<pre class="command">/usr/local/mysql/bin/mysqldump --add-drop-table -u username -p db_name > /path/to/output/file.sql</pre>That makes a single text file with all the SQL commands necessary to build your database tables and populate them with your data. If you want to restrict it to just one table from a database, you can add the table name after the db_name:
<pre class="command">/usr/local/mysql/bin/mysqldump --add-drop-table -u username -p db_name table_name > /path/to/output/file.sql</pre>To import that file into another machine, you have to create the database first, which you could do with phpAdmin. Then, just import the tables and data like this:
<pre class="command">/usr/local/mysql/bin/mysql -u root -p db_name < /path/to/output/file.sql</pre>That'll create all your tables and populate them with your data.
If you copy your databases this way, you're much less likely to run into trouble with compatibility issues if you're moving between machines with different versions of MySQL.
charlie -
Where i will get the .jar files for JDBC connector for MSSQL Server
Hi,
i am trying to configure the JDBC connector for the MSSQL server. For this we need to add the .jar files for MSSQL Server. Can any body tell , where i will will get the jar files to finish this connection.
Database version is MS SQL Server 2000
Portal version is Portal7.0 sp9
Regards
vijayHi Vijay,
If you are looking for the exact steps as to how we can configure the JDBC Connector for accessing the MS SQL Server, have a look at this document:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/b00917dc-ead4-2910-3ebb-b0a63e49ef10
Follow the steps till page 12 of this doc.
Bye
Ankur
Do reward points for helpful as well as solved answers!! -
How can i pass the Input value to the sql file in the korn shell ??
Hi,
How can i pass the Input value to the sql file in the korn shell ??
I have to pass the 4 different values to the sql file and each time i pass the value it has to generate the txt file for that value like wise it has to generate the 4 files at each run.
can any one help me out.
RajaCan you please more elaberate., perhaps you should more elaberate.
sqlplus is a program. you start it from the korn shell. when it's finished, processing control returns to the korn shell. the korn shell and sqlplus do not communicate back and forth.
so "spool the output from .sql file to some txt file from k shell, while passing the input parameters to the sql file from korn shell" makes no sense. -
Error while executing the .sql file
Hello,
Every time when i execute the below plsql it's keep throwing the error message as show in below output, this happens even when i manually create the trigger before executing the .sql file of all the below statements, can you please correct me what i am doing wrong here. Thank you.
DROP TABLE FCSDWH.REF_DATA_MASTER;
CREATE TABLE FCSDWH.REF_DATA_MASTER
REF_DATA_MASTER_ID NUMBER PRIMARY KEY,
DESCRIPTION VARCHAR2(255 CHAR),
CREATE_ID VARCHAR2(10 CHAR),
CREATE_DT DATE,
LST_UPD_ID VARCHAR2(10 CHAR),
LST_UPD_DT DATE,
ACT_STRT_DT DATE,
ACT_END_DT DATE
TABLESPACE FCSDWH
STORAGE(INITIAL 50K);
DROP SEQUENCE FCSDWH.REF_DATA_MASTER_SEQ;
CREATE SEQUENCE FCSDWH.REF_DATA_MASTER_SEQ START WITH 1 INCREMENT BY 1;
DROP TRIGGER "FCSDWH.REF_DATA_MASTER_TRG";
CREATE OR REPLACE TRIGGER FCSDWH.REF_DATA_MASTER_TRG
BEFORE INSERT ON FCSDWH.REF_DATA_MASTER
FOR EACH ROW
BEGIN
SELECT FCSDWH.REF_DATA_MASTER_SEQ.NEXTVAL INTO :NEW.REF_DATA_MASTER_ID FROM DUAL;
END;
/Output:
SQL> @/home/smadala/REF_DATA_MASTER.SQL
Table dropped.
Table created.
Sequence dropped.
Sequence created.
DROP TRIGGER "FCSDWH.REF_DATA_MASTER_TRG"
ERROR at line 1:
ORA-04080: trigger 'FCSDWH.REF_DATA_MASTER_TRG' does not exist
Trigger created.
SQL>The trigger is "attached" to the table so when you drop the table the trigger goes as well.
John -
Recently purchased a song from ITunes and another that I downloaded from a CD will not transfer to a playlist and will not even allow me to listen to the songs.I get the message "file cannot be located"What can I do to get my system to locate the file?Originally I could play the songs from my desktop and I was able to transfer to my IPad.
Because the location for each song in your library is on your hard drive. If the hard drive isn't there, how can iTunes play it?
You'll have to move/copy the music from your hard drive to your computer's hard drive.
Basically, EASIEST way to do all this, if you don't care about your play counts, etc...
-Delete EVERYTHING from iTunes, so that your library is now empty.
-Go to "Advanced" inside of the "Preferences" window, found in the "Edit" drop-down. You can also access Preferences by pressing Ctrl+, (Press Ctrl and the comma key)
-Change your iTunes Media Folder Location to something simple, but on your computer. I use C:/iTunes. Make sure "Keep iTunes Media Folder Organized" and "Copy files to...." are both checked. You can close Preferences now.
-Now, drag and drop your music from your hard drive into your iTunes library. iTunes will automatically add the music to your library, as you would expect, and also creates a copy of each file to place into that iTunes Media Folder you just created.
Shouldn't have any more problems... -
I Lost of my document saved in my previous adobe after upgraded itunes, can I get the lost file again?
Would you provide more information so that we can troubleshoot the problem?
Are you saying that your PDF documents on your iPad/iPhones are lost because you updated Apple iTunes (not Adobe Reader)? Do you see anything in the Documents or Recents section of the Adobe Reader home screen? -
How to get the right file name in an attachment
I have design a program to get the attach file from an attachment. But when I click the link to save the file, the default name of the file is 'attach' whenever I get different files. Who know what is the problem, please tell me the truth.
Here are some codes of the program.
download.jsp
<%="test.doc"%>
web.xml
<servlet-mapping>
<servlet-name>AttachmentServlet</servlet-name>
<url-pattern>attachment</url-pattern>
</servlet-mapping>
AttachmentServlet.java
public void doGet
Message msg = folder.getMessage(msgNum);
// the message I get is right and the name of the file in
// the attach in this message is right too.(I have printed)
Multipart multipart = (Multipart)msg.getContent();
Part part = multipart.getBodyPart(partNum);
ContentType ct = new ContentType(sct);
response.setContentType(ct.getBaseType());
InputStream is = part.getInputStream();
int i;
while ((i = is.read()) != -1) {
out.write(i);
out.flush();
out.close();The trick that I used is to append the URL with the name of the file. So if your url is "http://domain.com/attach", use "http://domain.com/attach/filename.doc". IE and Netscape parse the URL to determine what the filename is, so by placing this text at the end, you essentially let the browsers know what the filename is. :)
I have design a program to get the attach file from an
attachment. But when I click the link to save the
file, the default name of the file is 'attach'
whenever I get different files. Who know what is the
problem, please tell me the truth.
Here are some codes of the program.<< snip >> -
How to get the Output File Name as One of the Field Value From Payload
Hi All,
I want to get the Output file name as one of the Field value from payload.
Example:
Source XML
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_TEST xmlns:ns0="http://sample.com">
- <Header>
<NAME>Bopanna</NAME>
</Header>
</ns0:MT_TEST>
I want to get the Output file name as " Bopanna.xml"
Please suggest me on this.
Regards
BopannaHi,
There are couple of links already available for this. Just for info see the below details,
The Output file name could be used from the field value of payload. For this you need to use the UDF DynamicFile name with below code,
// Description: Function to create dynamic Filename
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
conf.put(key,a);
return "";
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
conf.put(key,a);
return "";
With this udf map it with the MessageType as
(File Name field from Payload) > DynamicFileConfiguration>MTReceiver
Thanks
Swarup -
Getting the Source File name Info into Target Message
Hi all,
I want to get the Source file name Info into Target message of one of the fields.
i followed Michal BLOG /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Requirement :
1) I am able to get the Target file name as same as the source file name when i check the ASMA in Sender & Receiver Adapter , with out any UDF...............this thing is OK
2) I took One field extra in the target structure Like "FileName" & I mapped it Like
Constant(" " )--UDF-----FileName
I Checked the Option ASMA in Both Sender & Receiver Adapters
Here iam getting the Target File name as same as Source file name + Source File name Info in the Target Field " FileName".
I Dont want to get the Target File name as same as Source file name. I want like Out.xml as Target file name.
If i de-select the Option ASMA in Adapters means it is showing " null" value in the target field "FileName".
Please Provide the Solution for this
Regards
BopannaHi All,
Iam able to do this by checking the Option ASMA in only sender adapter itself
Regards
Bopanna -
How can i get the SQL of a tablespace from the database
Hello All,
I am using Oracle 11g R2. I want to get the SQL of some tablespaces on my database. in the same way i get the DDL of the table using the GET_DDL function.
How can i get that ?
Regards,try this please
select dbms_metadata.get_ddl('TABLESPACE',tb.tablespace_name) from dba_tablespaces tb;or
select 'create tablespace ' || df.tablespace_name || chr(10)
|| ' datafile ''' || df.file_name || ''' size ' || df.bytes
|| decode(autoextensible,'N',null, chr(10) || ' autoextend on maxsize '
|| maxbytes)
|| chr(10)
|| 'default storage ( initial ' || initial_extent
|| decode (next_extent, null, null, ' next ' || next_extent )
|| ' minextents ' || min_extents
|| ' maxextents ' || decode(max_extents,'2147483645','unlimited',max_extents)
|| ') ;'
from dba_data_files df, dba_tablespaces t
where df.tablespace_name=t.tablespace_name Edited by: Mahir M. Quluzade on Mar 14, 2011 4:51 PM -
Exporting photos for UHDTV or Native 4K TV, what are the best settings ? (File: Quality File: Color Space, Image Sizing and resolution) Or in other words; How can I get the smallest files but keep good quality for display on new UHDTV
You're welcome, and thank you for the reply.
2) Yesterday I made the subclips with the In-Out Points and Command-U, the benefit is that I've seen the clip before naming it. Now I'm using markers, it's benefit is that I can write comment and (the later) clip name at once, the drawback is that I have to view to the next shot's beginning before knowing what the shot contains.
But now I found out that I can reconnect my clips independently to the format I converted the master clip to. I reconnected the media to the original AVI file and it worked, too! The more I work with, the more I'm sold on it... - although it doesn't seem to be able to read and use the date information within the DV AVI.
1) Ok, I tried something similar within FCE. Just worked, but the file size still remains. Which codec settings should I use? Is the export to DV in MOV with a quality of 75% acceptable for both file size and quality? Or would be encoding as H.264 with best quality an option for archiving, knowing that I have to convert it back to DV if I (maybe) wan't to use it for editing later? Or anything else?
Thank's in advance again,
André -
My Photoshop Elements does not start any more. It gives response "Photoshop elements cannot start or continue because of missing file(s). Please reinstall." How do I get the installing file again (I bought it from Adobe via internet the first time december 2013?)
Did you download the Basic/Free version?
I also thought the Trial period was as long as you needed!?
What is your Warranty and Return Policy?
You get to use VueScan for as long as you want before you buy it, so we recommend you test it before you buy it to make sure it meets your needs.
All sales are final and there are no refunds.
Isn't this a bit harsh? Naah I actually prefer to solve problems, and if I offer refunds, people give up too easily. If I can't solve your problem after you send a few Problem Reports (see above), I'm happy to give a refund.
http://www.hamrick.com/sup.html#q
Maybe you are looking for
-
How to find out the version of the SFK that is installed on Solaris 9 and 8
On Solaris 8 and 9, I would I like to find out the version of the SFK and the leadville driver that is installed. Is it possible to find out this information ? Thanks.
-
ICloud photo stream not updating
I have been taking photos on my iPhone and I am having a couple of issues with photo stream 1. It is only uploading photos I have taken today, all the photos I have taken previously are not uploading automatically. Is that a way I can do this? 2. My
-
[Solved] Quickcam Messenger and Skype
So I have installed skype from multilib multilib/skype 2.1.0.81-4 [18.28 MB] [installed] P2P software for high-quality voice communication and also the qc-usb-messenger package community/qc-usb-messenger 1.8-12 [0.05 MB] [installed] QuickCam Messenge
-
How to select date in which no transaction perform
Suppose ive a tablE T1 Dated date, Empno varchar2(10), status varchar2(1)); WHEN I PASS THIS QUERY select date,empno from t1 where dated between '1-may-2007' and '30-may-2007' it will results all the dates in which transactions are performed,and skip
-
Disco 10g with Apps 11.5.9. Financials Intelligence
Hello, I'm reading through Metalink note "Using Discoverer 10.1.2 with Oracle E-Business Suite 11i" 313418.1. with a view of getting Apps 11.5.9 integrated with Disco for both Financials Intelligence and also custom business areas and folders created