Exp batch with date tag
Hi Dearest Friends,
I have a daily script that backup my image_table on win2k. Then I put it on
scheduled task and run at 1:00am. It looks like this
filename: exp1.bat
exp lst_appl/lst_appl$ file=image.dmp log=image.log tables=image_master
How to I attached DATE to "image.dmp" so the previous file will not be
overwritten?
And WHERE do I encorporate my export select criteria so that I can back up only the 1-day transaction. (select * from image_master where trunc(date_created)=trunc(sysdate-1);
Hi
Hopefully this script will help you
@echo off
for /f "tokens=2-4 delims=/ " %%a in ('DATE/T') do set mdate=%%c%%a%%b
for /f "tokens=2-4 delims=/ " %%a in ('DATE/T') do set MM=%%a
for /f "tokens=2-4 delims=/ " %%a in ('DATE/T') do set DD=%%b
for /f "tokens=2-4 delims=/ " %%a in ('DATE/T') do set YY=%%c
IF %MM:~0,1%==0 SET MM=%MM:~1%
IF %DD:~0,1%==0 SET DD=%DD:~1%
set cdate=%DD%-%YY%
For /f "tokens=1-7 delims=.:/-, " %%i in ('echo exit^|command /K prompt $D $T ') do (
For /f "tokens=2-4 delims=/-,() skip=1" %%a in ('echo.^|date') do (
rem set dow=%%i
rem set %%a=%%j
rem set %%b=%%k
rem set %%c=%%l
set hh=%%m
set min=%%n
rem set ss=%%o
set TODAYDATE=%cdate%
exp fodat@bahamut file=H:\BACKUP-DAILY\%TODAYDATE%na.dmp owner=fodat
cheers
FZheng
Similar Messages
-
How to: create a Login page with data tags
hi, how could i create a jsp login page using the data tags.. and how to associate it with the other jsp pages that should be displayed in case of the correct insertion of the password .
http://technet.oracle.com:89/ubb/Forum2/HTML/006025.html
-
Frustrated with DATA TAGS (JDEVELOPER TEAM)
I have been trying to delete a record from an HTML form using data tags and unfortunately I am unable to make any progress.
It keeps telling me that I got to use either
"rowkey" or "rowkeyparam" and when I try to use it, it gives me a jsp exception.
This is the same case with me when I try to locate a record using the "Find" action.
So how am I to delete or update a record which is displayed in an HTML form?
I saw the "howto" on using the "rowkeyparam" but it simply doesn't work as advertised.
I always end up getting a JSP exception and the end result being I am unable to "UPDATE" OR "DELETE" any record from an HTML form.
JDeveloper Team, Please advice. Do you have any sample examples of "UPDATING" and "DELETING" a record from an HTML form?
I am really frustrated!!!!
nullTo see a quick example of a working UPDATE example simply use the "DataPage" Wizard.
When you choose the Edit Form generation option from the wizard, it will generate a working example of an "Edit Form"
JSP app using the Data Tags and a RowKey parameter.
For more info on the DataPage Wizard see: http://otn.oracle.com/products/jdev/info/jdev/datapage/s000.html
As for deleting a record, this is also done with the Row tag.
Instead of
<jbo:Row id="myrow" datasource="ds" rowkeyparam="MyRowKey" action="Update">
<jbo:SetAttribute dataitem="*"/>
</jbo:Row>
You can use:
<jbo:Row id="myrow" datasource="ds" rowkeyparam="MyRowKey" action="Delete"></jbo:Row>
Providing you pass the rowkey value as the Html parameter "MyRowKey"..
null -
Having multiple level of master/detail with data tags
Hi,
Here is a Database Model for the purpose :
- An EMPLOYEE is in one and only one DEPT
- a DEPT has several EMPLOYEEs
Suppose that:
- An EMPLOYEE come from one and only one SCHOOL which is in a SCHOOL table
- a SCHOOL have educated several EMPLOYEEs
Suppose that:
- A SCHOOL is part of one and only one SCHOOL_CATEGORY (Engineer school for example)
- A SCHOOL_CATEGORY concerns several SCHOOL
I would like to show a JSP page containing :
Employees for DEpt : 12456
table headers:
Employee ID | Employee Name | School Name | School Category Name
as you can see we have a master/detail between Master view DEPT and Detail view EMPLOYEE and EMPLOYEE is master for School which is detail view for employee and school category is detail view for school which is master for school category ! (do you follow me ? ;-))
Do you see my concerns ??
How do we do that whith data tags ??
Thank's a lot for you help...
It's urgent...Hi,
I guess you are trying to achieve this using BC4J if so then you can modify your view object for employee so as to have School and category listed when you base your datatags on that view.
You would need to modify your view object query by using expert mode.
Thanks
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Olivier LAHILLE ([email protected]):
Hi,
Here is a Database Model for the purpose :
- An EMPLOYEE is in one and only one DEPT
- a DEPT has several EMPLOYEEs
Suppose that:
- An EMPLOYEE come from one and only one SCHOOL which is in a SCHOOL table
- a SCHOOL have educated several EMPLOYEEs
Suppose that:
- A SCHOOL is part of one and only one SCHOOL_CATEGORY (Engineer school for example)
- A SCHOOL_CATEGORY concerns several SCHOOL
I would like to show a JSP page containing :
Employees for DEpt : 12456
table headers:
Employee ID | Employee Name | School Name | School Category Name
as you can see we have a master/detail between Master view DEPT and Detail view EMPLOYEE and EMPLOYEE is master for School which is detail view for employee and school category is detail view for school which is master for school category ! (do you follow me ? ;-))
Do you see my concerns ??
How do we do that whith data tags ??
Thank's a lot for you help...
It's urgent...<HR></BLOCKQUOTE>
null -
Using data web beans with data tags
I've a master-detail relationship, and i use a view current record to show the master record and a row tag in create mode, to insert a record in the detail table.
Do i need to populate the primary key of detail table or they are automatically populate like edit current record?
Thanks
nullYour DataWebBean is using a different application module instance thatn your datatags. Make the following changes:
1. remove the calls to
<%
// make sure the application is registered
oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFile(session , "PrjSegJSP_PkgSeg_PkgSegModule");
%>
2. change the following statement
tb.initialize(application,session, request,response,out,"PrjSegJSP_PkgSeg_PkgSegModule.KssegtrolesView");
to
tb.initialize(application,session, request,response,out,"PkgSegModule.KssegtrolesView");
3. Add a releaseAppResources tag to the end of both pages. The KssegtrolesView_Insert.jsp page should use reserved mode and the KssegtrolesView_SubmitInsertForm.jsp should be suing stateful mode.
You have now told the DWB to use the same am pool and application instance as the DataTag.
null -
Hello,
I have a problem : I submit a form which create a new record (made with data tags).
After the commit, the RowsetBrowser isn't refreshed. So you can't see the new record!
The release mode is Stateful on each page with data tags.
On the RowsetBrowser page, I set
setReleaseApplicationResources(false)
Could you help me?
thanks
Christophe<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Juan Oropeza ([email protected]):
Can you post your pages? <HR></BLOCKQUOTE>
I finaly found my mistake. I didn't set the same ID to the WB and the data tags.
thanks
Christophe
null -
Jdev3.2,Jsp,BC4J, Data Tags : Unexpected exception Caught
I wrote an jsp aplication, with data tags based on BC4J module.
when I run the application the first time, everything is Ok. the second Time an Unexpected exception is thrown.
the first module displayed in the error message is
msg=null oracle.jbo.ApplicationModule oracle.jbo.html.jsp.JSPApplicationRegistry.getAppModuleInstance(java.lang.String, javax.servlet.jsp.PageContext)
I thought that the problem is the module so
I runned the application module in the BC4J tester tool every thing is ok
I created a new aplication module but without any result.
I created a jsp Application based on the same application module but using the datawebbean and everything is ok also.
and here is a code that let the exception thrown.
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<jbo:ApplicationModule configname="test1.Test1Module.Test1ModuleLocal" id="Test1Module" username="wns" password="offline" />
<jbo:DataSource id="cat" appid="Test1Module" viewobject="TfixcategoryView" ></jbo:DataSource>
<select NAME="categoryList" size="10" multiple="yes">
<jbo:RowsetIterate datasource="cat" >
<option VALUE="<jbo:ShowValue datasource="cat" dataitem="Idcategory" ></jbo:ShowValue>"><jbo:ShowValue datasource="cat" dataitem="Dsnmcategory" ></jbo:ShowValue> </option>
</jbo:RowsetIterate>
</select>
can some help me to find a solution.
cheers
Ghassenhi Juan
I didn't copy all the code source. but the releasepageresources tag is there. and I have only put this code because when I delete it no exception is thrown so the problem is there( in data tags).
more than this when this exception is thrown I have only to relog to a new windows 2000 session and no exception is thrown.
cheers
Ghassen
null -
Jbo:Row data tag and the RowKey parameter
Hi,
According to the help system (Creating JSP Pages/Working with Data Tags/Navigating DataSources/Row data tag) it is possible to get the row key from the datasource tag. However, the datasource tag does not have such property - I've checked the ViewObjectTag's source - no memory of such property/method was there.
How do I obtain the rowkey value of a row in the datasource?
Regards,
Arik.
nullThanks - you should fix the documentation though - the docs say "mydatasource.getRowKey()"
See above for the exact path where it shows..
Regards,
Arik.
null -
Query to extract HTML tag with data
Hi All,
I have a string.
'<HTML><HEAD>THIS IS HEAD.</HEAD><BODY>THIS IS BODY.<P>THIS IS P1.</P>NIMISH<P>THIS IS P2.</P></BODY></HTML>'
I want to extract a html tag including its opening & closing tab with data as
if i say P1
then the output should be
'<P>THIS IS P1.</P>'
for P2
then the output should be
<P>THIS IS P2.</P>
please help me in writing this query with regular expression
i have tried it as following but it is not giving desired result:
WITH T AS
SELECT
'<HTML><HEAD>THIS IS HEAD.</HEAD><BODY>THIS IS BODY.<P>THIS IS P1.</P>NIMISH<P>THIS IS P2.</P></BODY></HTML>' STR
FROM
DUAL
SELECT REGEXP_SUBSTR(STR, '<P>.+P2.+</P>') FROM T
Thanks & Regards
Nimish GargEdited by: Nimish Garg on May 7, 2012 5:49 PMNimish Garg wrote:
My requirement is to extract a <tag>data</tag> from a HTML/XML string
where data contains any specified value.HTML is not XML.
And that is a critical distinction to make. HTML parsing is horribly complex. XML is quite easy. For HTML you have to code your own parser in PL/SQL. XML can be parsed using the XMLTYPE class/data type in PL/SQL.
So if you need to find a single specific tag in HTML - I would not try to treat it as XML. I may not even try to use regular expressions.
I would do a basic substring search for the start of the tag. Read the data following the tag. Ensure that there are no nested or embedded tags in the data. Until the end tag is read. Because HTML is that much abused - and because that is an accepted norm as parsers used by browsers deals with that abuse without complaining.
Proper HTML is mostly a myth in my experience of "screen scraping" web servers for data extraction as they do not have web services supplying the data. -
How to compare result from sql query with data writen in html input tag?
how to compare result
from sql query with data
writen in html input tag?
I need to compare
user and password in html form
with all user and password in database
how to do this?
or put the resulr from sql query
in array
please help me?Hi dejani
first get the user name and password enter by the user
using
String sUsername=request.getParameter("name of the textfield");
String sPassword=request.getParameter("name of the textfield");
after executeQuery() statement
int exist=0;
while(rs.next())
String sUserId= rs.getString("username");
String sPass_wd= rs.getString("password");
if(sUserId.equals(sUsername) && sPass_wd.equals(sPassword))
exist=1;
if(exist==1)
out.println("user exist");
else
out.println("not exist"); -
JSP, Data tags, How to build a form edit with multiple records
Hi, I'm using Jdev 9i.
I would like to have a JSP form where I can update, delete, insert records displayed in the same page.
I know that I can use the data tag jbo:DataEdit to do it, but it only works with a single record, I want to have several records in the same page, displayed horizontally.
The best example is a form to add items in an invoice:
Productid description quantity price
1001 xxx 10 20.00
1002 yyy 15 30.00
1003 zzz 7 10.00
Could you give some help please?
Thanks in advance.The form display is dictated by how you process the submit. I would build the form by using standard html tags. Here is another pseudo example:
<FORM ACTION="target.jsp" >
<TABLE>
<TR>
<TD>
DeptNo
</TD>
<TD>
DName
</TD>
<TR>
<%
int nRow = 0;
%>
<jbo:RowsetIterate datasource="ds">
<%
// increment the row number
nRow++;
String sDeptno = "Deptno" + nRow;
String sDname = "Dname" + nRow;
String sRowKey = "RowKey" + nRow;
%>
<jbo:Row id="myrow" action="current">
<TR>
<TD>
<input type="text" name="<%=sDeptno%>" value='<jbo:ShowValue dataitem="Deptno" />' />
</TD>
<TD>
<input type="text" name="<%=sDname%>" value='<jbo:ShowValue dataitem="Dname" />' />
<input type="text" name="<%=sRowKey%>" value='<jbo:ShowValue dataitem="RowKey" />' />
</TD>
<TR>
</jbo:Row>
</jbo:RowsetIterate>
<input type="submit" />
</TABLE>
</FORM>
NOTE: This should get you started!!! -
COGI Fail in b.ground with msg "No batch input data for screen SAPMSSY0120"
Hi Experts,
I have recorded the COGI transaction using SHDB and used in my program. I have scheduled the program in background and this is always failing with the following error "No batch input data for screen SAPMSSY0 0120". Please help me in this regard.
Thanks,
srinivas.Hi Ramya,
This screen doesn't contain any field. Also this screen shouldn't come in between of my transaction. But my program is working fine if I execute online.
Also I don't know where I need to call that screen.
Thanks,
srinivas. -
Problem with InputSelect Data Tag if there is no register in database
Hello all,
I4m working with Oracle JDeveloper 3.2.2 and I have a problem with InputSelect Data Tag.
When I tried to access a JSP page with this object and there was n't a record at the table, an error occurred.All the input tags operate on rows in the cache. Prior to using the input tags, use the Row tag with the 'Create' option to make sure you have a valid row.
-
Am I able to tag a data point of a spreadsheet that is being created by a datalogging VI such that at the end I have the data with multiple tags which corelate to events during a measurement cycle
My final need is to take data from a datalogging VI and store it in a spreadsheet with tags that corespond to events in a subVI which is controlling motor movement. This will allow users to view all data and mark the relevent data for analysis. As usual, user want everthing but with conditions.Sure. What you do is take the numeric value acquired, the tags you want, and build them into an array. So now, when you write to the spreadsheet, you'll have a 2D array. One thing you have to keep in mind is that all elements of an array have to be of the same type. So if your tags are strings, you'll have to convert your numeric data into strings as well.
-
CS4 Data Merge tag not replacing with data
I have a directory with multiple tags that my client updates weekly. Suddenly, one <<tag>> refuses to populate with the data.
On my clients windows machine it is the first tag (A column) that remains a tag.
On my mac it is the W column.
I have tried re-running with an older csv file and the problem persists.
I have looked at the csv file with text wrangler and see nothing of suspect.
Anyone else seen this issue?I's check to see if perhaps there's an extra field that's been introduced. You might need to open in a spreadsheet to make this obvious.
Maybe you are looking for
-
Any help would be appreciated, as I could not find anywhere to contact the company to ask questions regarding Lightroom. 1. All of my photos (jpeg files) are on my computer hard drive and an external hard drive. Can they be easily imported into Light
-
How do I transfer contacts from my old Nokia phone to my new iPhone?
My old phone is a Nokia 2330c-2. My new phone is an iPhone4
-
Hi , I am trying to use file adapter in OSB. My intention is the OSB should write a file in a specified location in my sytem. I have configured the Business Service with Messagin service in (general tab), request msg as text and response msg as none
-
So, when I connect my ipod touch to my mac, iPhoto opens it and shows the pictures I have on my ipod. But the thing is, my ipod is not showing in iTunes. How can I change the settings so I could see my ipod touch in itunes?
-
Has anyone else experienced extremely long parse times for Oracle 11G versus 10G? We are experiencing at least a 10 times increase in the parsing of our SQL statements. This is causing our customers to complain when running reports which contain seve