Convert into 10g so I will use procedure at DB but....
My dears
Now I will convert My program from 6i to 10g and alot of procedure which it written in forms will be rewrite at db as a procedure
But I want to know how all command in procedure scucess then I make commit else I make rollback how I Know this
plz I want a way to make me sure that procedute work good
thanks
Hi,
You can assign an OUT-parameter the same way you assign any variable. Some ways include
:= operator
SELECT ... INTO
passing it as an OUT-parameter to another procedure
Here's a simple example: a procedure that changes the sal column in a table like scott.emp.
The calling program needs to know if a row was changed or not. (empno is the primary key, so, at most, only one row can be changed.)
If the row was not changed, then the calling program may need to know why: whether it was because there was no matching row in the table, or beacuse the sal was NULL.
Here's how you might write the procedure:
CREATE OR REPLACE PROCEDURE change_sal
( in_empno IN emp.empno%TYPE -- id of employee
, in_pct IN NUMBER -- Percent inclease
, out_status OUT NUMBER -- 1=>it worked, 0=>no such emp, -1=>NULL sal
IS
new_sal emp.sal%TYPE;
BEGIN
UPDATE emp
SET sal = sal * in_pct / 100
WHERE empno = in_empno
RETURNING sal
INTO new_sal;
IF SQL%ROWCOUNT < 1
THEN
out_status := 0; -- There was no employee with the given empno
ELSIF new_sal IS NULL
THEN
out_status := -1; -- Sal was NULL
ELSE
out_status := 1; -- salary was changed
END IF;
END change_sal
SHOW ERRORS
Similar Messages
-
So, I downloaded a slideshow templates and I'm trying to make a timelapse with 900 pictures converted into 30 fps to get a 30 seconds video but after exporting my movie why is my video length 15 minutes?
What settings are you using to export the video with? I think 29.97fps is the only one that works with LR 5:
http://lightroom-blog.com/2013/09/17/timelapse-again-in-lightroom-5-2/
http://lrbplugins.com/shop/presets/lrb-timelapse-presetstemplates/ -
I have Photoshop Elements 9 have been using it for a couple of years now and have always been able to upload the jpeg and raw pictures and now it is not allowing me to upload raw.
I have uninstalled and re installed but still not working.
Can someone please give me some ideas on how to fix this.
It is probably something so simple i just can't figure it out
THANKS
Emm NIt shows see below. thanks for all the help
Elements Organizer 9.0.0.0
Core Version: 9.0 (20100929.m.9165)
Language Version: 9.0 (20100929.m.9165)
Current Catalog:
Catalog Name: My Catalog
Catalog Location: C:\ProgramData\Adobe\Elements Organizer\Catalogs\My Catalog\
Catalog Size: 2.4MB
Catalog Cache Size: 18.1MB
System:
Operating System Name: 2000
Operating System Version: 6.1 Service Pack 1
System Architecture: Intel CPU Family:6 Model:7 Stepping:10 with MMX, SSE Integer, SSE FP
Built-in Memory: 2GB
Free Memory: 1.6GB
Important Drivers / Plug-ins / Libraries:
Microsoft DirectX Version: 9.0
Apple QuickTime Version: Not installed
Adobe Reader Version: 9.1
Adobe Acrobat Version: Not installed
CD and DVD drives:
D: (HL-DT-ST DVDRAM BUS: 2 ID: 2 Firmware: GT20N) -
Trying to convert video in .MTS format to wok on Imovie. Doiwnloaded TotalVideo Converter Light. Tried converting it to Avi., .DV, .mp4, imovie, and then dragging to IMovieHd, but it doesn't accept it. nothing is working.
Frustrated, no format seems to work.
What should be best to convert into?miguelkavlin wrote:... dragging to IMovieHd, but it doesn't accept it. nothing is working.
iMovieHD means - in Apples officiall nomenclatura - vers 5. A very, very obsolete version...
is this really your version you're using?
(click in iMovie under File/about)
diff. versions, diff. advices... -
Insert data into multiple entities at once using a view object
Hi,
I'm trying to insert data into multiple entities at once using a view object, but unfortunately it doesn't seem to work. The two entities have a 1:1 association. I created a view object which contains both entities and I made sure they aren't read-only. But like I said it doesn't work, I can't insert data in both entities at once... :(
Is this possible? And how (if it is)?Hi,
I'm trying to insert data into multiple entities at once using a view object, but unfortunately it doesn't seem to work. The two entities have a 1:1 association. I created a view object which contains both entities and I made sure they aren't read-only. But like I said it doesn't work, I can't insert data in both entities at once... :(
Is this possible? And how (if it is)? Peter:
This is definitely supported and tested. Please send us the exception stack trace. You must running into other problems. A few things to note:
A) You have to mark the entities as both updateable (not read-only) and not reference-only.
B) If you're not seeing an exception stack, turn on diagnostic. Here is how:
To turn on diagnostic, go to the IDE,
1. Select the project.
2. Do right mouse click and select "Project Settings..."
3. On the Settings dialog, select Configurations/Runner.
4. In the righthand side pane, you should see a textbox for "Java
Options". Please add the following JVM switch:
-Djbo.debugoutput=console
Then, rerun. The run command should include
-Djbo.debugoutput=console as in
"D:\JDev9i\jdk\bin\javaw.exe" -Djbo.debugoutput=console -classpath ...
You should now see a lot more output on the IDE's message window. Here you should see the exception stack trace.
If you invoking your app directly from command prompt, just add "-Djbo.debugoutput=console" after your "java.exe".
Thanks.
Sung -
To convert multiple image files to pdf using pdfsharp in C#
Hey guys I have this C# code to convert any image file to .pdf using pdfsharp.dll. But I want to select multiple images for conversion please help. here's my code (plz note enable pdfsharp.dll in the reference)
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
usingPdfSharp.Pdf;
usingPdfSharp.Drawing;
usingSystem.IO;
namespaceConsoleApplication1
classProgram
staticvoidMain(string[]
args)
PdfDocumentdoc =
newPdfDocument();
doc.Pages.Add(newPdfPage());
XGraphicsxgr =
XGraphics.FromPdfPage(doc.Pages[0]);
XImageimg =
XImage.FromFile(source
path...);
xgr.DrawImage(img,0,0);
doc.Save(destination path...);
doc.Close();try this one
public string CreatePDF(System.Collections.Generic.List<byte[]> images)
dynamic PDFGeneratePath = Server.MapPath("../images/pdfimages/");
dynamic FileName = "attachmentpdf-" + DateTime.Now.Ticks + ".pdf";
if (images.Count >= 1) {
Document document = new Document(PageSize.LETTER);
try {
// Create pdfimages directory in images folder.
if ((!Directory.Exists(PDFGeneratePath))) {
Directory.CreateDirectory(PDFGeneratePath);
// we create a writer that listens to the document
// and directs a PDF-stream to a file
PdfWriter.GetInstance(document, new FileStream(PDFGeneratePath + FileName, FileMode.Create));
// opens up the document
document.Open();
// Add metadata to the document. This information is visible when viewing the
// Set images in table
PdfPTable imageTable = new PdfPTable(2);
imageTable.DefaultCell.Border = Rectangle.NO_BORDER;
imageTable.DefaultCell.HorizontalAlignment = Element.ALIGN_CENTER;
for (int ImageIndex = 0; ImageIndex <= images.Count - 1; ImageIndex++) {
if ((images(ImageIndex) != null) && (images(ImageIndex).Length > 0)) {
iTextSharp.text.Image pic = iTextSharp.text.Image.GetInstance(SRS.Utility.Utils.ByteArrayToImage(images(ImageIndex)), System.Drawing.Imaging.ImageFormat.Jpeg);
// Setting image resolution
if (pic.Height > pic.Width) {
float percentage = 0f;
percentage = 400 / pic.Height;
pic.ScalePercent(percentage * 100);
} else {
float percentage = 0f;
percentage = 240 / pic.Width;
pic.ScalePercent(percentage * 100);
pic.Border = iTextSharp.text.Rectangle.BOX;
pic.BorderColor = iTextSharp.text.BaseColor.BLACK;
pic.BorderWidth = 3f;
imageTable.AddCell(pic);
if (((ImageIndex + 1) % 6 == 0)) {
document.Add(imageTable);
document.NewPage();
imageTable = new PdfPTable(2);
imageTable.DefaultCell.Border = Rectangle.NO_BORDER;
imageTable.DefaultCell.HorizontalAlignment = Element.ALIGN_CENTER;
if ((ImageIndex == (images.Count - 1))) {
imageTable.AddCell(string.Empty);
document.Add(imageTable);
document.NewPage();
} catch (Exception ex) {
throw ex;
} finally {
// Close the document object
// Clean up
document.Close();
document = null;
return PDFGeneratePath + FileName; -
Websites will convert to a PDF using Adobe Acrobat 9 but not Adobe Acrobat XI
Hello,
We have noticed that there are several websites that can be concerted into a PDF using Adoble Acrobat 9, but do not work with Adobe Acrobat XI. An example is the website http://amseventsubc.com/. This site converts with no problems using Adobe Acrobat 9, but will not work with Adobe Acrobat XI. When one tries to convert the website (by going Create > PDF from Web Page > Capture Multiple Levels > Get entire site > Create) it starts to work for about 10 minutes but then stops and crashes the program.
Does anyone have a suggestion for how to fix this problem?
Is there any reason why a website would work in an older version of Acrobat and not the most recent?
Thanks for your help!Hi, we are actually not looking to have active links but rather to have the content from each link saved as part of the PDF (We are looking to convert the entire website's content to PDF). On Adobe X you can normally append any link so that its content will be converted and added to your PDF, however, this can't be done with XML links.
-
Read and write into csv file using procedure
I would like to read a particular column value from csv file(which will have many columns) using procedure and for that value I have to retrieve some more values from database table and have to append into same csv file.
can someone help me?
Thanks
Edited by: 1002478 on Apr 25, 2013 5:52 AM
Edited by: 1002478 on Apr 25, 2013 5:55 AM1002478 wrote:
thanks for your reply.
Using UTL_FILE i'm able to read csv file. I'm stuck up in appending some more columns to same csvYou'll struggle to append data to an existing CSV.
You'd be better to read the data from one CSV, and create another CSV using that data, and the extra data you want, and then when finished, delete the original file and rename the new file to the old filename.
You should be able to do that using External Tables to read the source file (easier than using UTL_FILE) and UTL_FILE to write the new file. -
Which are function modules used to convert into XML format in SAP 4.6c Ver
which are function modules used to convert into XML format in SAP 4.6c Ver
Hi,
check this program , I think this will help you
TYPE-POOLS: ixml.
TYPES: BEGIN OF xml_line,
data(256) TYPE x,
END OF xml_line.
data : itab like catsdb occurs 100 with header line.
data : file_location type STRING.
data : file_name like sy-datum.
data : file_create type STRING.
file_name = sy-datum .
file_location = 'C:\xml\'.
concatenate file_location file_name into file_create.
concatenate file_create '.XML' into file_create.
DATA: l_xml_table TYPE TABLE OF xml_line,
l_xml_size TYPE i,
l_rc TYPE i.
select * from catsdb into table itab.
append itab .
CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
EXPORTING
I_FIELD_SEPERATOR =
I_LINE_HEADER =
I_FILENAME =
I_APPL_KEEP = ' '
I_XML_DOC_NAME =
IMPORTING
PE_BIN_FILESIZE = l_xml_size
TABLES
i_tab_sap_data = itab
CHANGING
I_TAB_CONVERTED_DATA = l_xml_table
EXCEPTIONS
CONVERSION_FAILED = 1
OTHERS = 24
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
bin_filesize = l_xml_size
filename = file_create
filetype = 'BIN'
CHANGING
data_tab = l_xml_table
EXCEPTIONS
OTHERS = 24.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
write : 'INTERNAL TABLE DATA IS SUCCESSFULLY DOWNLOADED TO LOCATION', file_create .
Thanks. -
How to retrieve data from catsdb table and convert into xml using BAPI
How to retrieve data from catsdb table and convert into xml using BAPI
Points will be rewarded,
Thank you,
Regards,
Jagrut BharatKumar ShuklaHi,
This is not your requirment but u can try this :
CREATE OR REPLACE DIRECTORY text_file AS 'D:\TEXT_FILE\';
GRANT READ ON DIRECTORY text_file TO fah;
GRANT WRITE ON DIRECTORY text_file TO fah;
DROP TABLE load_a;
CREATE TABLE load_a
(a1 varchar2(20),
a2 varchar2(200))
ORGANIZATION EXTERNAL
(TYPE ORACLE_LOADER
DEFAULT DIRECTORY text_file
ACCESS PARAMETERS
(FIELDS TERMINATED BY ','
LOCATION ('data.txt')
select * from load_a;
CREATE TABLE A AS select * from load_a;
SELECT * FROM A
Regards
Faheem Latif -
How to convert a .class file into .java file without .jad using DeJDecompil
Hi all,
I am using DeJDecompiler and working with swing applications.If I try to convert a .class file into .java file,it is converting into .jad file only.Fine but if I try to save that file into .java file,It is giving lot of errors in that program.When I went into that program the total style of the program is changed and TRY-CATCH block is not recognised by the dejdecompiler,hence If I try to include some methods in the existing .java file thus got,I could not do.Kindly help me.
If I get the .java file without error then I can process the rest of the functionality.
Thanks in advance
With kind Regs
Satheesh.KNot so urgent today then!
http://forum.java.sun.com/thread.jsp?thread=553576&forum=31&message=2709757
I'm still not going to help you to steal someone�s code. -
Hi,
I am getting the error "The conversion of a varchar data type to a datetime data type resulted in an out-of-range value."
when converting date in format Date in varchar(50) format MM/DD/YYYY HH:MM into YYYY-MM-DD format using MS SQLServer 2008 R2.
Please note that the date in column is Date(varchar(50), null).
I used the following syntax:
SELECT CONVERT(VARCHAR(10), Date, 102) AS Day
FROM dbo.[RCap_2G MM/Operator]
WHERE (CONVERT(VARCHAR(10), Date, 102) > { fn NOW() } - 1)As noted above, either use ISDATE or TRY_CONVERT with the correct conversion style number:
-- SQL Server 2012 code
DECLARE @Date varchar(50) = '10/23/2006 10:20';
SELECT TRY_CONVERT(DATE, @Date, 101) AS Day
-- 2006-10-23
Datetime conversion blog:
http://www.sqlusa.com/bestpractices/datetimeconversion/
Kalman Toth Database & OLAP Architect
SQL Server 2014 Design & Programming
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
After saving a pdf as Excel workbook the numbers remain text and cannot be used in calculations. Is there a better way to convert into real digital numbers?
I have tried to convert the pdf to Word instead but same difficulty with numbers: look like numbers but not usable for calculationsExcel has a 'text to numbers' function, I would use that.
Convert text to numbers. Microsoft Excel. -
my company is using microsoft exchange server for the mails. When ever i send my mail, having even one single attachment, whole of the mail is converted into the attachment and the reciver receive the mail in the form of attachments.
HI,
I get following? when run the test? user is login to Domain A but accessing exchange in Domain B? -
I create name plaques using TypeStyler, but my laser cutter says they must be converted into two vector files; a cut file to cut the outlines of all the letters and an "etch" to etch the letter intersect lines. Can AI convert my TypeStyler file into a cut file and an etch file?
Thanks. I might use it soon...
Does it automatically make folders named after the volume labels? And does it handle the conversion of spaces and non-alphanumeric characters to octal codes?
I could read the script but it would be faster for everyone reading, if you leave the answer as a reply.
I also think that there should be some major work done on modernizing the fstab, either by replacing it with a better implementation of file system mounting or changing the file structure and adding in better handling of non-alphanumerics. I don't want to have to look up a stupid octal table every time I type in my labels.
Maybe you are looking for
-
I am trying to add an 'All day event' in iCal (have tried on the MacBook Pro and iPhone4) for the 7/10/11. This keeps saving over 2 days the 6/10 and 7/10, even if I change the date manually, after saving it reverts back to both days. Have done plent
-
I am not able to use "read out loud" for a pdf book file. I get this error "Read out loud cannot be activated for this document because it's permissions do not allow for content copying for accessibility." I checked under document restrictions and t
-
Can't turn off auto quantizing
I'm a little new to Logic, but from what I can tell, I've done everything I should. I'm trying to record 16th note triplets, and the notes show up as triplets in the piano roll while I'm recording, but then are automatically quantized to straight 16
-
Extra thin white rule showing up outside a frame.
Hello, Well, I thought this would be easy, but I can't seem to find where to turn this off. I was looking at a clients file and there is an additional very thin white rule, that sits just outside the actual frame when selected. It's not a frame edge?
-
Put-Key Command Fails with 6982
Hi, I am using a JCOP 2.4.1 R3 card. And i am trying to send PUT-KEY command through APDU. But i get 6982 as a response from the card. Initial Key: 404142434445464748494A4B4C4D4E4F New Key: 101112131415161718191A1B1C1D1E1F IV: 0000000000000000 ENCSes