selection of a query as a table name in the reports
Greedings,an example to explain what im trying to do
allows said
Query1: = table1. Name | | ' _Nom ';
This result will be for example "citizen_code".
what im trying to do is to select the specific query to obtain the required data
Select code in: Code_P of query1@seconddatabase where...
is it possible to do something like that?
Thanks for your time,
dem
Hello
Try to create a query such as this
SELECT &P_COLUMN_1 COLUMN_1,
&P_COLUMN_2 COLUMN_2,
&P_COLUMN_3 COLUMN_3,
&P_COLUMN_4 COLUMN_4
FROM &table_name
Note You must create the user settings before you create the query, and also all the column setting and the name of the table must have the valid default value.
Best regards
Arif Khadas
Tags: Oracle Development
Similar Questions
-
Get the name of the report file in oracle running Report Builder
Dear all,
Is it possible to get the name of the report file in oracle running Report Builder?
for example, "HR_REP012. REP.
I need to this very important...
Kind regards
Yousef
Published by: Yousef_m on June 2, 2012 05:18Hello
Have you tried the builtin SRW. Built-in GET_REPORT_NAME?
Example of
function boolean return AfterPForm is
my_variable varchar2 (80);
BEGIN
SRW. GET_REPORT_NAME ($my_var);
SRW. MESSAGE (0,' report Filename = ' | my_variable);
RETURN (TRUE);
END;Concerning
-
Change the name of the report server?
I installed Oracle Application Server as_windows_x86_forms_reports_101202 on Windows XP. Any body can tell me:
1. how to change the name of the report server
2 configure the path of the application folder that contains the reports.Hello
You want to change the name of your current report server? There is no automatic way of this fact. You will need to manually change the relevant files1. stop the opmn.
$ cd $ORACLE_HOME/opmn/bin
$ opmnctl stopall2. stop the EM console.
$ cd $ORACLE_HOME/bin
$ emctl stop iasconsole3. change the $ORACLE_HOME/reports/conf/rwservlet.properties file:
Of
SERVER =
TO
SERVER =4. make a backup of $ORACLE_HOME/sysman/emd/targets.xml.
5. change the current process in entrances to report since the replacement of targets.xml file server: former name of report server with the new name of report server
6. restart opmn.
$ cd $ORACLE_HOME/opmn/bin
$ opmnctl startall7 restart the EM console.
$ cd $ORACLE_HOME/bin
$ emctl start iasconsole8 - if the report server works well, you can remove all the files associated with the old name as: old reports name.conf and .../reports/logs/old reports Server server name / *. *
I have yet to your second question. If you want to make a default path for all your reports to ensure that you have the entry for the entire site of reports in the REPORTS_PATH environment variable.
a. UNIX, we find this variable in the reports.sh file
b. in windows, this variable can be found in the registry.
I hope this helps.
Thank you
Anand -
Name of the report that is stored in the Cache
How to change the name of the report that is stored in the Cache at the time of the report.
That is to say by default it assign a numeric value like 023421.pdf
How do I change this in our related namesHello
You can use the following code in your forms:
SET_REPORT_OBJECT_PROPERTY (REPORT_ID, REPORT_DESTYPE, file);
SET_REPORT_OBJECT_PROPERTY (REPORT_ID, REPORT_DESNAME, 'the_file_name_you_want');Concerning
-
How to change the name of the report server?
How can I change my name of report server that is normally generated by the combination of server Name_OracleHome. But can I use a different name for my report server and I need to change the configuration files?How can I change my name of report server
See Paulo Esteves answer in How to change the name of the report server?
-
Dynamically read the table name in the query update
Hi all
I am trying to run the updated sql query where the name of the table should be read dynamically from another table below.
Please let me what wrong with my request.
setting a day (select CONCAT('T',schemaid) from outline, which the name = 'Analyzer') set c7 = 99;
"outline" is a table that contains two columns name and schemaid.
all the table created in our database with the prefix 't' T4345 for example.
I did as suggested by you
No, you didn't. I did not any package creation code in my example, in order to better that you you point the finger.
Your syntax is invalid for creating a package with the code like this, please read on creating packages and procedures within them if that's what you want to do.
In addition, your package creation statement is to create a package specification, but you put in the code which must be in a package body, not a notebook loads.
It should be something like (untested since I don't have your tables)...
create or replace package my_packg as
procedure dowhatever.
end;
/create or replace package body my_packg as
dowhatever procedure is
TBL varchar2 (30);
Start
Select 't' | SchemaId
in tbl
of outline
where name = 'Analyzer ';
run immediately 'Update'. "TBL |' set c7 = 99;
end;
end my_packg;
/and then call this procedure by calling my_packg.dowhatever ();
-
Bind the Variable Table name in the query of VO
I have a VO that must have its clause defined dynamically at run time. I have a string bind variable defined with a default value that is referenced in the query of the VO. However, JDeveloper allow me to leave the definition of the query of the view object when the from clause is a variable binding, even if the binding variable has the default value.
For example.
Select
« X »
Of
: TABLE
where
1 = 1
The variable binding TABLE is defined as a string with a default value of the 'double '. Did I miss something in the definition of the VO?
Thank you
Hello
I suggest you to dynamically set the query of the view object. This does not meet your requirements.
xxVo.setQuery ();
-
How to use the variable instead of the table name in the select statement of procedure
I have a procedure with a select statement with dynamic from clause. How can I use instead of the name of the table variable.
create or replace procedure scc_chemical_analysis
is
v_table_name varchar2 (100);
Start
declare
cursor c1 is select * from v_table_name; -This is the variable name. How can I use it in the select statement.
.
.
.
.
end;Hello
something like that.
1 declare 2 vSQLString VARCHAR2(32000); 3 pTableName varchar2(1000):='EMP'; 4 BEGIN 5 vSQLSTRING := 6 'SELECT ''x'' FROM ' || DBMS_ASSERT.sql_object_name(pTableName) || ' WHERE rownum<=1 '; 7 EXECUTE IMMEDIATE vSQLSTRING; 8* END; SQL> / PL/SQL procedure successfully completed.
-
* Dynamic * Table name in the From Clause, with the help of the cursor
Hello
I said a slider...
Select the table table_name from dba_tables where < blah >
The result is
Row1: emp
rwo2: emp_1-> tables have the same structure and quite different data... Please don't ask why it's like that, and we can not change...
Now, we need to run an Insert...
Insert into tableX (col1, col2,...) select a, b,... from < o/p of the cursor > where < blah >...
Note: The table changes name and it the cursor can o/p emp, emp_a and emp_b.
Trying to do at the same time instead of do series and with the best performance... .no sql injection issues.
In parallel, I mean
Insert into tableX (col1, col2,...) select a, b,... from emp where < blah >
and insert tableX (col1, col2,...) select a, b,... from emp_1 where of < blah > statements at the fire parallel / at the same time to the database. If you can share the procedure if you guys already have with you... is really appreciated
Thank you very much for your time...
Published by: user007009 on April 27, 2013 20:33>
because suppose each request took 10 minutes and we have 5 tables, then 50 minutes so executed in series and 5 minutes, if each of them both right... I'm saving this time
>
And that's what I'm talking about when I said that
>
what you're doing wrong is trying to implement solutions more possible complex for a problem that does not exist yet.
>
You do not HAVE a problem. You are just "assuming"; "Suppose that each query took 10 minutes... ».Well suppose that the time it takes to "chunk" the query, run it in parallel is longer than the time it takes to simply run the query. Oh, wait, that OF what you have discovered.
Well, let's assume that each query took 2 seconds. Assume that all this takes that half a second. Suppose you waited until you actually have a problem.
The solutions are to solve real problems, not imaginary and non-existent problems.
If all you are doing is "assume that" you will never find a 'solution' because you could always 'suppose' another problem that prevents this 'solution' of work.
-
cannot find the table name of the multiple tables which has more columns.
Hello
I'm trying to find the NAME of the TABLE from multiple tables which has more columns. I can't count the number of columns in the table, but cannot find the name of the table that has larger columns in other tables.
SELECT TABLE_NAME, COUNT (*) FROM THE USER_TAB_COLUMNS WHERE TABLE_NAME LIKE '% LOC' GROUP TABLE_NAME
Thank you.in SQL, you can try this:
var v_name varchar2(40) begin with subq1 as ( select table_name, count(*) as column_count from user_tab_columns where table_name like 'FIBER%' group by table_name order by count(*) desc ) select table_name into :v_name from subq1 where rownum = 1; end;
To get the result:
select :v_name from dual
The clause "with" brings together all the tables and ordered them all first, by the greatest number of columns
The final query uses the rownum restriction so that it takes the first name from the table of results of the subquery.The restriction of rownum also exactly guarantees a result each time so that it will work with the variable binding.
RP
-
Hello
I need a little help...
For some reason, I have to change the underlying table for a treatment of automatic process (process Row) line (form).
Although such a change is possible in the designer of the page (under "settings") Apex does not recognize the new name of the table, but seem to rather use the name of the original table "old."
Pretty strange (new/modified) (the new table columns) are (correctly) error message.
For example, the 'old' is: TABLE_1 and TABLE_2 new.
TABLE_2 has a new COLUMN_NEW column (and corresponding P1234_COLUMN_NEW page element exists)
Then the error message says something like: not found COLUMN_NEW column in TABLE_1. Althougt I changed the table to be TABLE_2.
Maybe it's a bug or I do something wrong about this?
Thank you in advance!
André
OK, just to get some - you changed the name of the table twice:
-Rendering of section--> Page1234: Pagename--> pre-rendering--> after the header--> process of--> line from TABLE_2
-Treatment article--> treatment--> process--> process of line from TABLE_2
I thought, that always seek you the line of TABLE_1
Christian
-
Does not receive the table name in the list of schema objects creating EO
Hello
IAM does not have my name of the table custom in the list of schema objects during the creation of EO.
I created a custom table and I need to use this table looks for creation EO,
But while creating the EO, I'm not able to find the table in the schema object list.
in the connection database, these tables are present, but only in this window (window of creation of Eo) these tables do not come
can someone please help how to solve this problem.
Hello
I found the solution
in business components that there is another database link that I've changed now, it works fine now
-
Possibility to change the BA, TABLE name for a report, and then keep putting in the form
Hi all
I have a report from a custom folder of BA1 xx_test1... Now, I want to modify the workbook to use the custom file BA2 xx_test2.
The custom folders have the same exact columns.
Is it possible because I dione a lot of formatting and donot want to redo everything again. ?
Thank you
VJHi Vj
Let me explain a few things about Discovererw workbooks.All the code needed to run than a workbook is embedded in the workbook. There is no record of SQL that you can go change the code. Discoverer incorporates the name of the file and identify as well as the name of any joint used. You can change the name of a folder without causing any problem as long as you do not modify the identifier as well. When the workbook opens then he will still find the folder. You should save the workbook again at this time so that the appropriate folder name is saved too.
Interestingly, the corporate domain names are not included in the workbook. If the Finder can locate records is any accessible business while the workbook is open.
So here's what I'd do:
1. get the new SQL for the custom folder and replace the SQL in your existing folder
2. rename the folder in the name you want to use. DO NOT modify the identifier and DO NOT change the names of all the joints.
3 try to open your workbooks. They will find the file and continue working
With regard to a new BA, here's my recommendation.
1. create a master BA for all folders
2 use folders to manage in the Admin tool, I'd share any files with this master BA - then you have an area for maintenance
3. create a new empty BA
4 use folders to manage again, sharing folders, you need the new BA - the joints will get too shared
5 using the tools | Security, grant users access to this new BA and remove access to any former
That's all. The workbooks will find records in the new BA and continue as before.
I'm really sorry about planning. This is an option you should use really. It sounds like your business might need a discoverer health check, to make sure that you use it properly. Have a look here: http://ascbi.com/consulting.htm
I hope my answers above help
Best wishes
Michael -
Add the Cluster name to the report
Hello
How could I add the name of the Cluster to the next report?
Get-Datastore - VM $vm |
Select @{N = "DataStore"; E={$_. Name}},
@{N = 'The virtual computer name'; E = {$vm. Name}}
The release of the report would be Cluster DataStore, VM, etc..
Thank you
Something like that
Get-Datastore -VM $vm | Select @{N="Cluster";E={Get-Cluster -VM $vm | Select -ExpandProperty Name}}, @{N="DataStore";E={$_.Name}}, @{N="VM Name";E={$vm.Name}}
-
Change the name of the report.
Hello
I am unable to change the name of interactive report once it has been created. How can I change the name of report?
Concerning
John.
1011589 wrote:
Please update your forum profile with a recognizable username instead of "1011589": Video tutorial how to change username available
Always include the information referred to in these guidelines when you ask a question: How to get the answers from the forum
I am unable to change the name of interactive report once it has been created. How can I change the name of report?
Depends on what you mean by "name of interactive report. Explain what you did in detail and provide a clear and complete description of your needs.
Maybe you are looking for
-
Why I get the browser upgrade download boxes that do not work - I have installed but I have shit and the boxes will not disappear It does not workI ran malware which I had not run in 2 weeksusually, he finds that everything is okbut this time there w
-
On my Satellite Pro A120 possibly defective keyboard controller
I have a Toshiba Satellite Pro A120-223 dual core and that's my problem with the keyboard. I get this irritating message at the start with BEEBS, where it says PXE - E61 Media Test Failure among others. Then I opened it everything and put everything
-
Realtek RTL8188EE 802.11 b/g/n (code 10)
HI everyone, after HP support assistant had updated me the LAN driver (s), my 15-g029 wm hp laptop using Windows 8.1 gives me an error message that the device cannot start (code 10) in Device Manager. It worked without any problems before. Thanks for
-
BlackBerry blackberry q10 to z10 Z10
If my daughter wanted to try my old z10, except that I gave it to my daughter who has been put in place in this regard. Girl 2 was a great work of z30. Girl 1 was a q10 I booted up the z10 and wiped. Then when I was put in place it would not girl 1 b
-
Count consecutive repetitive element in a sequence using XQuery
If the sequence = [an a b c c c a d e e d e f g h h]then her output = [1 2 1 1 2 3 1 1 2 1 2 3 1 1 1 2]Have tried to use recursion, but no luck... Help, please... Thank you in anticipationNote: Using the implementation of XQuery 1.0One of my failing