Can i create temp tables in command?
I need to create 5 temp tables and then use in CR for display. can this be done in Command?
p.s. if this is regarding the same report that you've been dealing with for a couple of weeks now, please let us know exactly how you want the data to come back:
a) do you want 5 rows of data from 5 queries each returning one value, or
b) do you want 1 row of data from queries with 5 columns
e.g.
a)
field1
1.6
2.1
3.1
1.8
2.6
or
b)
field1 field2 field3 field4 field5
1.6 2.1 3.1 1.8 2.6
the a) or b) choice will determine what methods you can use to retrieve the data.
if you don't want either a) or b) please describe how you want the data returned.
-jamie
Similar Messages
-
How to create Temp Table?
Hi..
I gotta output 2 table in my database. And, want to output
all fields of such table in one grid. So, can I create temp table
in Coldfusion MX7? Here is my table structure of two tables.
table 1) Company_name, exp_Value
table 2) Company_name, imp_Value
I want to create temp table like
temp table ) Company_name (table1 + table 2) , exp_value
(table 1), imp_value (table 2)
so, how can I solve this problem.?
All solutions will be appreciated.
best,
Z(Z) wrote:
>
quote:
Originally posted by:
cf_dev2
> Try using a FULL OUTER JOIN
>
> select coalesce(t1.Company_name, t2.Company_name) AS
Company_name,
> t1.exp_Value, t2.imp_Value
> from table1 as t1 full outer join table2 as t2
> on t1.Company_name = t2.Company_name
>
> Thanks, buddy. But, it's not ok for my project. Because,
million of records
> are in each tables. If I do so, page loading is really
huge and cannot be
> displayed within 10 seconds. Another solutions?
>
> All of solutions will be appreciated..
>
>
>
another solutions?
well, what exactly are you trying to do if none of the
solutions given
so far work for you?
i believe the suggested solutions covered all possibilities,
save for
UNION query, which, from what i can understand from your
explanations,
is NOT what you need either...
if cf_dev2's OUTER JOIN suggestion is "not ok" for your
project - i
don't know which one will be "ok" then...
how many records are you expecting in your "temp table" if
not all
records you have in the db? how can you expect fewer than all
records if
using INNER JOIN is not acceptable to you because "some
company_names
would be lost if table (1) company_name isn't included in
table (2)"???
you really should look at normalizing your db, i think...
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com -
Can we create a table in temp tablespace?
Hi Support ,
I have confused about on point that Can we create a table in temp tablespace.
thanksI so not think the question is so bad except that it was as suggested something you can determine for yourself in 20 seconds:
> /
create table mark (fld1 number) tablespace tmp
ERROR at line 1:
ORA-02195: Attempt to create PERMANENT object in a TEMPORARY tablespace
Other database products allow users to create tables in the temporary tables such as SQL Server. I just tested using SQL Server 2008 R2 and I could create a table in TEMPDB.
SQL Server also creates temporary tables, create table #table_name, in TEMPDB. You can see these objects while in use.
IMHO -- Mark D Powell -- -
Can I create a table in a procedure submitted to job queue?
I have created a package (with AUTHID CURRENT_USER) where some of the procedures create temporary tables to facilitate processing. These procedures run just fine when executed directly from within an anonymous block at the SQL*PLUS level. However, when I submit the procedures to the job queue (via DBMS_JOB.SUBMIT), the job is submitted successfully but fails when run. Investigating the Alert Log shows an error of insufficient privilege on the CREATE TABLE command in the procedure.
QUESTION:
Can I create a table from a procedure running in the Job Queue? If so, then how to get it to work? Does the job run in a different environment that needs Create Table privileges set to my schema?
Thanks for any info you can provide.
JohnFYI: Found the problem. In the Administrator's Guide (of course not in the supplied packages documentation about DBMS_JOB) I found:
"How Jobs Execute
SNP background processes execute jobs. To execute a job, the process creates a session to run the job.
When an SNP process runs a job, the job is run in the same environment in which it was submitted and with the owner's default privileges.
When you force a job to run using the procedure DBMS_JOB.RUN, the job is run by your user process. When your user process runs a job, it is run with your default privileges only. Privileges granted to you through roles are unavailable."
And of course we had set up our users to get all privileges through Roles, so CREATE TABLE wasn't one of my DEFAULT PRIVILEGES!
It sure would be nice if Oracle documentation could get its act together and provide ALL information about a topic in a logical place. The effort to find the information about privileges occurred after it took me 1/2 hour to figure out why my submissions were failing - I didn't have the ';' included in the quoted string for the procedure to be called - which I only figured out after looking at the code for DBMS_JOB where it made the note to make sure you include the ';'. Wouldn't it be good to have that MINOR DETAIL mentioned in the description of DBMS_JOB.SUBMIT????? -
Create temp table in PL/SQL
How to create temp table in PL/SQL procedure/function?
In SQL plus, I can create a table using
create table <table name>
on commit reserve ..If you're referring to temp table similar as the temp table of informix .. the answer is you cannot create a temp table in oracle than will automatically be cleaned by oracle session.
However its possible to create a remporary table but this will be a permanent part of your schema.. and you'll be the one responsible for dropping this table.
regards,
Victor ([email protected])
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Mike Chan:
How to create temp table in PL/SQL procedure/function?
In SQL plus, I can create a table using
create table <table name>
on commit reserve ..
<HR></BLOCKQUOTE>
null -
We have a Java7 web app, which generate PDF report by calling Crystal Server 2013 SP4.
The app is being deployed on many different servers. We sometimes got the error below when generating report:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Can not create temp file---- Error code:-2147215357 [CRSDK00000615] Error code name:internal
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.controllerExportInternal(PrintOutputController.java:280)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:152)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:130)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:113)
Problem is, this seems to be a pretty generic exception. It could be caused by many different reasons.
e.g. network connection problem, wrong DB login, wrong folder path, lack of folder access right, etc.
Each time we could only guess what's wrong.
We are running into it again, and this time everything seems correctly configured so far.
We wonder if there are more info we can get to troubleshoot? For example, any log file of Crystal Server we should look into? Or does Crystal Server has debug mode which prints more details to tell us what goes wrong?Prithviraj Shekhawat wrote:
Hi Henry,
I believe you are using RAS SDKs to export the reports to PDF.
Apply trace on RAS server and check what you find in RAS logs.
Check whether you can see timeout error is RAS logs. Usually if connection is lost and the RAS server no more have the session to write to the temp directory, we do see these errors.
Also, does the account that runs RAS have permissions to create a file in RAS's default temp directory? Are you getting any out of memory or out of disk space exceptions on App server or RAS, tracing RAS server is the way to move forward.
Thanks,
Prithvi
>>I believe you are using RAS SDKs to export the reports to PDF.
Yes
>>Apply trace on RAS server and check what you find in RAS logs.
>>Check whether you can see timeout error is RAS logs.
How to configure tracing, and where are RAS logs? Is it configured in CMC --> Servers --> Crystal Report Services?
>>Also, does the account that runs RAS have permissions to create
>>a file in RAS's default temp directory?
Pretty sure yes.
>> Are you getting any out of memory or out of disk space exceptions
>>on App server or RAS, tracing RAS server is the way to move forward.
Not on App server.
For RAS, that's the problem, I am not sure where to look....... -
Hello,
While exporting Export reporting from BI4 getting exception
Can not create temp file---- Error code:-2147215357 [CRSDK00000615] Error code name:internal
In Trace Log I am getting
com.crystaldecisions.xml.serialization.XMLWriter||Failed to create an object instance for CrystalReports.TextObjectFormat
java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key CrystalReports.TextObjectFormat
at java.util.ResourceBundle.getObject(ResourceBundle.java:374)
at java.util.ResourceBundle.getString(ResourceBundle.java:334)
I tried following solution according to the all forums but still issue exist.
Done changes mention in KB article In <Installation-dir-of-BO>\Common\4.0\java\CRConfig.XML we have to increase the JAVA heap MIN and Max size
<JVMMaxHeap>64000000</JVMMaxHeap> <JVMMinHeap>32000000</JVMMinHeap>
Increase the value in the ReportApplicationServer Services in the CMC for "Number of database records to read when previewing or refreshing a report". The value -1 is for unlimited records but not recommended for performance.
Check for temporary read write permission on server
Using SDK library from C:\Program Files (x86)\SAP Business Objects\SAP BusinessObjects Enterprise XI 4.0\java\lib
Can you please let me know is there anything missing.Hi,
We face the same problem with some BI4 reports.
The same report works well with the "Crystal Reports Viewers API", as used in Infoview, but not with the "Report Application Server (RAS) API".
This error appears after some time working on a report. If we reproduce the same report, but from zero, no problem.
Hope it can help.
Ludovic. -
Can I create a table in my form?
Our need our teachers to fill out a field trip form using a table format?
Can I create a table in my form?
and if yes, how?
thank you
Need it to look like this:
DATE
TIME
To start/finish
Name of Program
TEACHER’S
NAME
TEACHER’S EMAIL
# OF
STUDENTS
Setup in
Room #
02-07-14
9:20-10:35
Soil Rocks
Juday
20
118
02-07-14
10:50-12:05
Soil Rocks
Guild
20
118
02-07-14
12:45-2:00
Soil Rocks
Neptune
20
118
02-07-14
2:15-3:30
Soil Rocks
Webb
20
118Yes and yes.
If you have questions about creating the PDF form, you can use the Acrobat Forms forum: http://forums.adobe.com/community/acrobat/forms?view=discussions -
Can we create internal table dynamically ? how?
hi to all experts,
can we create internal table dynamically ? how?plz explain me with an example.Anybody with good example will be rewarded.it was asked in an interview what the answer for itHI
Yes you can create
see this
/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap
JUST USE THIS CODE AND DO THE ESSENTIAL CHANGES ACCORDING TO YOU
STEP: 1 - get backend field catalog (currently displayed alv)
CLEAR: tl_fieldcatalog. REFRESH: tl_fieldcatalog.
CALL METHOD w_grid->get_backend_fieldcatalog
IMPORTING
et_fieldcatalog = tl_fieldcatalog.
STEP: 2 - create a new fieldcatalog for dynamic internal table
CLEAR: sl_fieldcatalog.
CLEAR: t_outtab_fieldname. REFRESH: t_outtab_fieldname.
CLEAR: tl_fieldcatalog_new. REFRESH: tl_fieldcatalog_new.
CLEAR: t_download_fieldname. REFRESH: t_download_fieldname.
CLEAR: t_download_fieldheading. REFRESH: t_download_fieldheading.
LOOP AT tl_fieldcatalog INTO sl_fieldcatalog.
STEP: 2.1 - populate data in T_OUTTAB_FIELDNAME
APPEND sl_fieldcatalog-fieldname TO t_outtab_fieldname.
STEP: 2.2 - populate TL_FIELDCATALOG_NEW & T_DOWNLOAD_FIELDNAME
IF sl_fieldcatalog-no_out EQ ''.
IF sl_fieldcatalog-fieldname NE 'STATUS'
OR sl_fieldcatalog-fieldname NE 'MESG_STATUS'
OR sl_fieldcatalog-fieldname NE 'ZLOCK'
OR sl_fieldcatalog-fieldname NE 'T_PLANT'
OR sl_fieldcatalog-fieldname NE 'T_CSR'.
If field is COMM_PLANT, change its length
IF sl_fieldcatalog-fieldname EQ 'COMM_PLANT'.
sl_fieldcatalog-outputlen = 1800.
sl_fieldcatalog-intlen = 1800.
sl_fieldcatalog-dd_outlen = 1800.
ENDIF. "comm_plant
sl_fieldcatalog_new = sl_fieldcatalog.
APPEND sl_fieldcatalog_new TO tl_fieldcatalog_new.
APPEND sl_fieldcatalog-fieldname TO t_download_fieldname.
APPEND sl_fieldcatalog-scrtext_l TO t_download_fieldheading.
CLEAR: sl_fieldcatalog, sl_fieldcatalog_new.
ENDIF.
ENDIF.
ENDLOOP.
STEP: 3 - create dynamic internal table
FREE: ref_download.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
I_STYLE_TABLE =
it_fieldcatalog = tl_fieldcatalog_new
IMPORTING
ep_table = ref_download
E_STYLE_FNAME =
EXCEPTIONS
generate_subpool_dir_full = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ASSIGN ref_download->* TO <ft_download>.
CREATE DATA ref_wa LIKE LINE OF <ft_download>.
ASSIGN ref_wa->* TO <fs_download>.
STEP: 4 - populate data in dynamic internal table
LOOP AT t_outtab INTO wa_outtab.
LOOP AT t_download_fieldname.
ASSIGN COMPONENT t_download_fieldname OF STRUCTURE
<fs_download> TO <fs_download_field>.
IF t_download_fieldname-field EQ 'COMM_PLANT'.
STEP: 4.1 - get long text from database table
CLEAR: wal_table.
SELECT SINGLE * FROM zshaven_plnt_txt
INTO wal_table
WHERE vbeln = wa_outtab-vbeln
AND posnr = wa_outtab-posnr
AND del_no = wa_outtab-del_no
AND del_itm = wa_outtab-del_itm.
IF sy-subrc EQ 0.
STEP: 4.2 - break long-text into separate lines
CLEAR: tl_text. REFRESH: tl_text.
SPLIT wal_table-plant_comm
AT '~'
INTO TABLE tl_text.
STEP: 4.3 - Combine these separate lines with space in
between two lines
CLEAR: wal_text, final_text.
LOOP AT tl_text INTO wal_text.
IF final_text IS INITIAL.
final_text = wal_text.
ELSE.
CONCATENATE final_text '-' wal_text
INTO final_text.
REPLACE '-' WITH ' ' INTO final_text.
ENDIF.
ENDLOOP.
STEP: 4.4 - move long text to work-area
<fs_download_field> = final_text.
ENDIF. "subrc
ELSE. "t_download_fieldname
READ TABLE t_outtab_fieldname
WITH KEY field = t_download_fieldname-field.
ASSIGN COMPONENT t_outtab_fieldname-field OF STRUCTURE
wa_outtab TO <fs_outtab_field>.
<fs_download_field> = <fs_outtab_field>.
ENDIF.
ENDLOOP.
STEP: 4.5 - Move data from work-area to dynamic internal table
APPEND <fs_download> TO <ft_download>.
CLEAR: <fs_download>.
ENDLOOP.
STEP: 5 - download
CALL FUNCTION 'DOWNLOAD'
EXPORTING
filename = 'C:\zshaven.xls'
filetype = 'DAT'
filetype_no_show = 'X'
filetype_no_change = 'X'
TABLES
data_tab = <ft_download>
fieldnames = t_download_fieldheading
EXCEPTIONS
invalid_filesize = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
customer_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF. -
Can I create a table called user
Dear buddies,
Can I create a table called user in my database.
Please guide me.
Thanks in advance.
Nithuser645399 wrote:
I was required to create one for some reasons by a vendor so that Oracle will work with their tool.
This tells you more about the vendor than the vendor would like you to know ......
Like the vendor that told me their product would work with an oracle database, but they preferred SQL Server because "oracle doesn't perform will with more than 5 concurrent connections". Fortunately we were still in product evaluation and I was able to get them cut from the short list.
After seeing all your replies, now, I have contacted them asking for alternatives and explanations.
Anyway, Thank You to everyone of you.
Nith -
Dear Experts,
How Can I create plan Table.
How can i read it?run UTLXPLAN.SQL
under
$ORACLE_HOME/rdbms/admin/
check this link for detailed information
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14211/ex_plan.htm#i19260 -
Can i create External Table dynamically
Hi,
Is it possible to create External Table dynamically ?
I want to use the following dynamically to create External Table.
1) fields
2) field position
3) file location
ThanksThe answer shouldn't be very different of already given answers in your Can i create external table dynamically? of the last month, is it ?
And question is still same : why wanted such thing ?
Nicolas. -
Tried to run firefox as usual but the the page could not connect the server. Thus, uninstalled the browser and tried to install a newer version. Could not run the program and error msg "can not create temp folder archive" popped up.
See http://answers.yahoo.com/question/index?qid=20080702200623AAOYP13
-
When I try to download mozilla it says "can not create temp folder archive"
I click 'run' and after it is done loading a window pops up saying 'can not create temp folder archive' So basically it won't let me download mozilla. What do I do to fix this?
Interesting. I tried one more time - instead of saving it to my hard drive, I ran it directly off the Mozilla site and it installed....
Something is definitely wrong with the Mozilla "save as" and THEN run process.... -
Ao clicar em "Executar" aparece "Can not create temp folder archive". O que faço?
Não consigo instalar o Firefox mesmo com o auxílio do “Instalando o Firefox no Windows”. Ao clicar em "executar" aparece uma mensagem do 7 - Zip "Can not create temp folder archive” .
O que devo fazer para conseguir instalar o navegador?Você tentou executar como administrador o instalador do Firefox? Tente iniciar o computador em modo de segurança e tente novamente instalar.
*[http://windows.microsoft.com/pt-br/windows/start-computer-safe-mode]
Maybe you are looking for
-
HT1349 after the 10.7 update my movies is unable to player
i recently updated my itunes and quick time on my PC and now the movie player doesn't play. I have removed the program and reinstalled and even brought the pro verison still the player stops and itunes closes. help
-
Re-installed Kaspersky when reactivated account and now my Firefox will not open not even a message to allow or anything. Went to Mozilla to reload went ok till the install standard tellsme to close Firefox but it is not open, remember I could not op
-
Another Sync Question - Desperate!
I bought a 32 g ipod touch from ebay. My problem is I can't synch ANYTHING. Itunes will recognize the ipod and show me a list of songs and applications that came with the ipod. But it just won't sync anything to it from my PC and itunes. I have tried
-
How to update msi 7800GT in a healthy way????
I apologise for my ignorance and I apreciate and kind of help. I got MSI 7800 GT 256DDR3, and I installed the vga-driver that came with it. Shall I wait for the updates from LIVE UPDATE or shall I check in nVidia site? IS there any drivers that assur
-
Macbook Pro 13 Built in mIcrophone is not working....
My MBP 13 Built in mIcrophone is not working..please help...