Functionality of help for the users of the database
HelloI was wondering if anyone knows a good way to implement a feature to aid in your dashboards.
Users that work with our global dashboards do not have much experience with IT, so I want to make a shortcut function.
This might be a question mark to each report to explain what it does and how you do it, or maybe a clue F1 help as you get with Outlook.
Someone has ideas or could signal a good option for me?
THX,
Erik
Published by: user10703465 on November 6, 2009 07:01
If you have your sample sale and RPD webcat with you that comes with your install (10.1.3.4) you can see the dashboard it. They have implemented the functionality of help with a link and a report.
Any ways I will explain
Create a sample report with a dummy object and go directly to your static text and you can include text that you ever need as how to use dashboards or what this dashboard used for etc etc. Save the report
Now, go to the dashboard page and add the object link on the left and to the simple reference component destination this request. Type 'Help' in the legend.
You can simply use FMAP available to the image if you have one. Referecing of the sample as shown below
FMAP:views / Help.gif
You can download the images online and make sure that store you them under
File C:\OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res
It may be useful
Thank you
Prash
Tags: Business Intelligence
Similar Questions
-
Is it possible to hide a conditional function in responsibility. Say it together a small number of users, I need the function display and for some users, it must be hidden.
Hello
The normal thing to do is to create a similar additional responsibility and using Exclusions to 'hide' the features you want.
Then assign it to restricted users.
Kind regards
Bashar
-
There is no help for the usrp blocks screens
For power, where are the docs for help for the USRP & USRP related blocks (host side & lvfpga blocks)? Help is dimmed in the menus. If they came with the driver, they should be grouped in with something not obvious & has not installed. Where are they?
BTW, I use NU-USRP 15.00.
Thank you.
apchar,
Try to use context-sensitive help on the pilot of the USRP RIO screw Either click on the "?" in the upper right corner of the block diagram, or press Ctrl-H and hover over the screws of RIO USRP. You should see the additional help documentation.
-
I need help for the upgrade of my current system.
I need help for the upgrade of my current system.
I have SBS 2008 with (Exch 2007, SQL 2005, Sharepoint, backupexec 2010 for sbs) licenses.
I want to make the larger environment using the following:
(1) apply Virtualization
(2) apply to the failover process (clustering)
"(3) the environment must support adding server terminal server, ERP server, exchange server, domain controller, backup manager.
Storage 4) that supports Raid (1 and 5)
UTM excellent 6) that supports (SSL VPN, VPN Global)
suitable backup solution 7)
(8) good antivirus for clients
my questions:
(1) can you provide me with a good design for this environment
(2) should I choose what operating system:
Microsoft datacenter or company
I know datacenter provide us the unlimited VM but needs per processor license
so if I have two Grouped servers I want to buy 4 licenses
and just 4 VMs per company license... to say that we have two servers and maintain 8 vms so wat happened if 1 goes down... How can I migrate the 4 virtual machines on the server failed to another server group... ? should I buy enterprise license?
(3) if I get the SAN storage for data... How can I save this storage... should I get another SAN?
(4) how can I upgrade SBS stad single server (windows standrad) without losing the licenses as Exch 2007, SQL 2005, sharepoint.is it a must to buy an edition full std server or there is a way to upgrade (license wise, I mean)?
(5) what about win2k8 license for VM:
lets say we have physical that has windows license so that enough to have windows for VM or should I buy windows for VM licenses?
(6) can I use backExec license for SBS with windows 2008 standard
(7) who better to virtualization AMD or INTEL
(8) hyper V or VMware?
(9) what of Microsoft data protection Manager... is this good?
(10) what virtual machine manager? What are the benefites keys
Thanks in advance
Hello AnasAI,
You can find the Server forums on TechNet support, please create a new post at the following link:
http://social.technet.Microsoft.com/forums/en/category/WindowsServer/
-
How to install a local help for the tools of cmd.exe and command line on Windows 7?
Hello
for many applications, the command line (cmd.exe) is a good choice to get results with minimum effort. The shell has continuously been improved over the years, at least until Windows XP.
All the command line tools have a short help screen (using the /? option). When you need more information, you use Windows system for example from the Explorer Help. It is very good.
Now, Windows XP Help content was installed on site, and the operating system. In Windows 7, my computer wants to go to the Microsoft web site on the internet and there is no local help available. The operating system seems to be incomplete. This makes the help system unusable on a computer without internet access or when the server is not accessible.
So my question is: is it possible to install a local copy of help for the tools of cmd.exe and command line under Windows 7 or do we have to go back to Windows XP?
Thank you
Martin
Download it directly from Microsoft - Windows Command Reference
-
Where can I find help for the companion of XBox Music App, App for video, or for games of XBox Live?
You can find the sites of support for these applications at the following locations:
-
ORA-16783: could not resolve the deficit for the database
I have two databases emadb and emadbdg, governed by Data Guard. emadb is currently principal. emadbdg is currently pending physical.
ORA16783 - cannot solve the gap for the database is one I think, is the origin of the problem. Anyone can help solve the problem below. Logs attached.
Output of data protection
DGMGRL > show detailed configuration
Configuration - DRSolution
Protection mode: MaxAvailability
Databases:
emadb - primary database
Error: ORA-16825: multiple errors or warnings, including failover quick start or warnings, errors detected for the database
emadbdg - (*) Physical standby database
WARNING: ORA-16817: configuration not synchronized rapid failover
(*) Fast failover target
Properties:
FastStartFailoverThreshold = "30"
OperationTimeout = "30"
FastStartFailoverLagLimit = "30"
CommunicationTimeout = "180"
FastStartFailoverAutoReinstate = 'TRUE '.
FastStartFailoverPmyShutdown = "FALSE".
BystandersFollowRoleChange = "ALL".
Fast-Start Failover: ENABLED
Threshold: 30 seconds
Target: emadbdg
Observer: emarn1
Offset limit: 30 seconds (do not use)
Primary closure: FALSE
Auto-Rétablir: TRUE
The configuration status:
ERROR
DGMGRL > see the detailed database emadb
Database - emadb
Role: PRIMARY
State of destination: TRANSPORT-WE
Occurrence (s):
emadb
Database error (s):
ORA-16783: could not resolve the deficit for the database emadbdg
Warning (s) of database:
ORA-16817: unsynchronized fast-start failover configuration
Properties:
DGConnectIdentifier = "emadb.
ObserverConnectIdentifier = "
LogXptMode = "SYNCHRONIZE".
DelayMins = '0'
Binding = "optional."
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = "300"
NetTimeout = "30"
RedoCompression = "DISABLE."
LogShipping = 'ON '.
PreferredApplyInstance = "
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO '.
StandbyFileManagement = 'AUTO '.
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = "4"
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = 'emadbdg, emadb '.
LogFileNameConvert = "/ opt/app/oracle/oradata/emadbdg, / opt/app/oracle/oradata/emadb '"
FastStartFailoverTarget = "emadbdg".
InconsistentProperties = "(monitor).
InconsistentLogXptProps = "(monitor).
SendQEntries = "(monitor).
LogXptStatus = "(monitor).
RecvQEntries = "(monitor).
Nom_sid = "emadb.
StaticConnectIdentifier = ' (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=emarn1) (PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = emadb_DGMGRL) (INSTANCE_NAME = emadb)(SERVER=DEDICATED)))'
StandbyArchiveLocation = "/ opt/app/oracle/oradata/emadb/archivelog1.
AlternateLocation = "
LogArchiveTrace = '0'
LogArchiveFormat = '% t_%s_%r.dbf '.
TopWaitEvents = "(monitor).
State of the database:
ERROR
DGMGRL > see the detailed database emadbdg
Database - emadbdg
Role: STANDBY PHYSICS
State of destination: apply
Transport delay: (unknown)
Apply the Lag: (unknown)
Real-time query: OFF
Occurrence (s):
emadbdg
Warning (s) of database:
ORA-16817: unsynchronized fast-start failover configuration
Properties:
DGConnectIdentifier = "emadbdg".
ObserverConnectIdentifier = "
LogXptMode = "SYNCHRONIZE".
DelayMins = '0'
Binding = "OPTIONAL."
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = "300"
NetTimeout = "30"
RedoCompression = "DISABLE."
LogShipping = 'ON '.
PreferredApplyInstance = "
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO '.
StandbyFileManagement = 'AUTO '.
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = "4"
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = 'emadb, emadbdg '.
LogFileNameConvert = "/ opt/app/oracle/oradata/emadb, / opt/app/oracle/oradata/emadbdg '"
FastStartFailoverTarget = "emadb.
InconsistentProperties = "(monitor).
InconsistentLogXptProps = "(monitor).
SendQEntries = "(monitor).
LogXptStatus = "(monitor).
RecvQEntries = "(monitor).
Nom_sid = "emadbdg".
StaticConnectIdentifier = ' (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=emarn2) (PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = emadbdg_DGMGRL) (INSTANCE_NAME = emadbdg)(SERVER=DEDICATED)))'
StandbyArchiveLocation = "/ opt/app/oracle/oradata/emadbdg/archivelog1.
AlternateLocation = "
LogArchiveTrace = '0'
LogArchiveFormat = '% t_%s_%r.dbf '.
TopWaitEvents = "(monitor).
State of the database:
WARNING
DGMGRL >
DGMGRL >
DGMGRL >
DGMGRL >
DGMGRL > outputAlex Antony Samantha wrote:
Head nodeSQL> archive log list Database log mode Archive Mode Automatic archival Enabled Archive destination /opt/app/oracle/oradata/emadb/archivelog1 Oldest online log sequence 65 Next log sequence to archive 67 Current log sequence 67 SQL> select thread#,max(sequence#) from v$archived_log group by thread#; THREAD# MAX(SEQUENCE#) ---------- -------------- 1 925
It is misleading to the column sequence, sequence of real number is 65 series, but it's beyond. Have you restored any old backup with the incarnation?
When you perform incremental backups, is the current_scn in the two primaries and Eve was balanced?And the sequence number * 29 * is transferred from the primary to the standby (or) he has been removed from the primary?
Perform the two methods.(1) SQL > alter system set log_archive_dest_state_2 = 'reporter ';
(2) conduct 3-4 log switches
(3) SQL > alter system set log_archive_dest_state_2 = 'enable '.and displays the alert log database and backup files.
And you mentioned the hostname in the entries of the listener, if this entry is added in/etc/hosts? otherwise you can use the IP address instead of the host name and then reload the listener.second method
(1) copy archives missing from primary sequence of 29
(2) place manually and then perform a recovery
or
(3) retrieve manuallyAnd update with your conclusions after all these lists.
Thank you. -
ashrpt - ORA-20200: samples of ASH NO exist for the DATABASE/Instance
Hello guyes,
Please could you help me with the generation of the report of ASHES? I have the stack on:
"ORA-20200: NO samples of ASH does exist for the DATABASE Instance / '.
I tried to find how to sample, but the only things I found is for statspack or awr.
Thanks a lot :)redy007 wrote:
sb92075:
SYS@PMBTEST > select * from v version $;BANNER
--------------------------------------------------------------------------------
Oracle Database 11 g Release 11.2.0.2.0 - 64 bit version of PL/SQL Production 11.2.0.2.0 - Production
CORE Production 11.2.0.2.0
AMT for Linux: Version 11.2.0.2.0 - Production NLSRTL Version 11.2.0.2.0 - ProductionThe active Session history exists only in the Enterprise edition.
-
Help understand the database sites...
Hi all
I was hoping someone could give me some advice. I apologize in advance to be really stupid Im really new on this...
I recently had a go at dreamweaver cs3, as I have an idea for a Web site. I love so far. My question is if this, say I wanted to produce a web site that sold used... a bit like e - bay, people download their images and their information selling etc and it appears on the line and the transaction is also online. Of course, it comes to database, but can I do this using plain old MS access or what I need to learn a new program database?
I think that what I'm asking, in a round point average, what should I know to learn how to produce a website as above. I really don't want to spend hundreds of pounds on the books that aren't relevant, as I have in the past
Thanks guys for any notice of information for a novice novive.
Hello
Using access for the database depends on the amount of users you plan access is very limited in this regard, perhaps a better solution is to use php/mysql, because these are much better taken care should you have a problem.
Seehttp://www.adobe.com/devnet/dreamweaver/application_development.html.
PZ
-
How to determine the level of Group of patches for the database Oracle EBS Server?
Dear
How findout patches for the database server Oracle EBS group level i.e. 10.2.0.3?
ConcerningDear Suzy,
I was looking for a patch of database being upgraded. After the database owner (enviroment) to supply file, I used the following command from $ORACLE_RDBMS_HOME/OPatch directory, command like $ OPatch lsinventory, he listed all the patches and updated patch also.
'OPatch lsinventory' must list all patches applied to $RDBMS_ORACLE_HOME. For the level of database of the Group of hotfixes, you can use one of the instructions above to get the version. In addition, you can check to the BONE by running executable files (i.e. sqlplus, impdb... etc).
And on request, I used-> -use $AD_TOP/sql/adutconf.sql , it is perfectly correct.
Ok.
But I can't go through of OAM,-diagnostics of Applications using, you can guide me. When I select plan of the site-diagnosis & repair - run diagnostic tests, it error. Say year error has occurred!
Please note: you don't have sufficient privileges to perform this function.OAM and Diagnostics Applications are two different things.
Diagnostics of applications can be run from "Oracle Diagnostic Tool".
Note: 358831,1 - E-Business Suite Diagnostics run Instructions
https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=358831.1Note: 167000.1 - Installation Guide for E-Business Suite Diagnostics
https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=167000.1For the Group of hotfixes in OAM, follow the steps described in the following note:
Note: 550654.1 - how to get patches Oracle Applications products in R12 group level
https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=550654.1Kind regards
Hussein -
[8i] help with function with parameters (for the calculation of the work)
Let me start by saying, I've never written a function before, and I do not have access to create a feature in my database (that is, I can't test this feature). I am trying to achieve a function I can ask my IT Department to add for me. I hope that someone can take a look at what I wrote and tell me if this should work or not, and if it's the right way to go to solve my problem.
I'm creating a function to make a very simple calculation of work (add/subtract a number of days to a date in the calendar).
The database, I work with has a table with the schedule of work. Here is a sample table and sample data, representative of what is in my work table calendar:
The table includes since 01/01/1980 but 31/12/2015.CREATE TABLE caln ( clndr_dt DATE, shop_days NUMBER(5) CONSTRAINT caln_pk PRIMARY KEY (clndr_dt) ); INSERT INTO caln VALUES (To_Date('01/01/1980','mm/dd/yyyy'),0); INSERT INTO caln VALUES (To_Date('01/02/1980','mm/dd/yyyy'),1); INSERT INTO caln VALUES (To_Date('01/03/1980','mm/dd/yyyy'),2); INSERT INTO caln VALUES (To_Date('01/04/1980','mm/dd/yyyy'),3); INSERT INTO caln VALUES (To_Date('01/05/1980','mm/dd/yyyy'),3); INSERT INTO caln VALUES (To_Date('01/06/1980','mm/dd/yyyy'),3); INSERT INTO caln VALUES (To_Date('01/07/1980','mm/dd/yyyy'),4); INSERT INTO caln VALUES (To_Date('01/08/1980','mm/dd/yyyy'),5); INSERT INTO caln VALUES (To_Date('01/09/1980','mm/dd/yyyy'),6); INSERT INTO caln VALUES (To_Date('01/10/1980','mm/dd/yyyy'),7); INSERT INTO caln VALUES (To_Date('01/11/1980','mm/dd/yyyy'),8); INSERT INTO caln VALUES (To_Date('01/12/1980','mm/dd/yyyy'),8); INSERT INTO caln VALUES (To_Date('01/13/1980','mm/dd/yyyy'),8); INSERT INTO caln VALUES (To_Date('01/14/1980','mm/dd/yyyy'),9);
I have written (and validated) this parameter query that performs the calculation of my working day (mday):
Based on this request, I created the following function (and I have no idea if it works or if the syntax is right, etc..):SELECT cal.clndr_dt FROM CALN cal , ( SELECT cal.shop_days+:mdays AS new_shop_days FROM CALN cal WHERE cal.clndr_dt =:start_date ) a WHERE cal.shop_days = a.new_shop_days AND ROWNUM =1 ORDER BY cal.clndr_dt;
I'm also not sure how to do to have the function handle results that would return a date outside the range of dates that appear in the table (prior to 01/01/1980 or after until 31/12/2015 - or, another way to look at what was, before the caln.clndr_dt or the caln.clndr_dt MAX value MIN value).CREATE OR REPLACE FUNCTION add_mdays (start_date IN DATE, mdays IN NUMBER(5)) RETURN DATE IS new_date DATE; BEGIN SELECT cal.clndr_dt FROM CALN cal , ( SELECT cal.shop_days+mdays AS new_shop_days FROM CALN cal WHERE cal.clndr_dt =start_date ) a WHERE cal.shop_days = a.new_shop_days AND ROWNUM =1 ORDER BY cal.clndr_dt; RETURN new_date; END add_mdays; //edit 9:31 AM - noticed I left off this bit
My goal is to be able to use the function in a situation similar to the following:
First of all, here is a sample table and data:
And here's how I would use my function:CREATE TABLE orders ( ord_no NUMBER(5), plan_start_dt DATE, CONSTRAINT orders_pk PRIMARY KEY (ord_no) ); INSERT INTO orders VALUES (1,To_Date('01/08/1980','mm/dd/yyyy')); INSERT INTO orders VALUES (2,To_Date('01/09/1980','mm/dd/yyyy')); INSERT INTO orders VALUES (3,To_Date('01/10/1980','mm/dd/yyyy'));
Thus, the function would allow me to come back, for each command in my table of orders, the date is 3 days working (mdays) before the start of the plan of each order.SELECT orders.ord_no , orders.plan_start_dt , add_mdays(orders.plan_start_dt, -3) AS prep_date FROM orders
I go about it the right way? I have to create a function to do this, or is there a way for me to integrate my request (which makes my mday calculation) in the example query above (eliminating the need to create a function)?
Thank you very much in advance!
Published by: user11033437 on February 2, 2010 08:55
Fixed some typos in the last insert statements
Published by: user11033437 on February 2, 2010 09:31 (fixed some syntax in the function)Hello
Ah, referring to Oracle 8 and is not not able to test your own code makes me nostalgic for the good old days, when you have entered your cards and led to a window to the computer center and waited an hour for the work to be performed and then seen printing to find that you had made a typo.
If you write functions, you should really test yourself. Like all codes, functions forge be written small not: write a line or two (or sometimes just a part of what would later become a single line), test, make sure it is running properly and repeat.
Ideally, your employer must create a pattern of development in a development database that you can use.
You can legally download your own instance of Oracle Express Edition free; just be careful not to use features that are not available in the database where the code will be deployed.You need a function to get the desired results:
SELECT o.ord_no , o.plan_start_dt , MIN (e.clndr_dt) AS prep_date FROM orders o , caln l , caln e WHERE l.clndr_dt = o.plan_start_dt AND e.shop_days = l.shop_days - 3 GROUP BY o.ord_no , o.plan_start_dt ;
It would be more effective (and somewhat simpler) If you've added a column (let's call it work_day) identified whether each line represents a work_day or not.
For each value of shop_days, exactly 1 row will be considered as a working day.
Then, the query may be something like:SELECT o.ord_no , o.plan_start_dt , e.clndr_dt AS prep_date FROM orders o , caln l , caln e WHERE l.clndr_dt = o.plan_start_dt AND e.shop_days = l.shop_days - 3 AND e.work_day = 1 ;
You can use the analytic LAG function to populate the work_day column.
A function would certainly be useful, although perhaps slower.
The function you have posted has some errors:
an argument can be stated under NUMBER (5); Just NUMBER.
(b) when you SELECT in PL/SQL, as you do, you must SELECT a variable to store the results.
(c) ROWNUM is arbitrary (making it useless in this problem) unless you draw a neat subquery. I don't think you can use ORDER BY in subqueries in Oracle 8. Use the ROW_NUMBER analytic function.
(d) the service must end with an END statement.Given your current caln table, here's how I would write the function:
CREATE OR REPLACE FUNCTION add_mdays ( start_date IN DATE DEFAULT SYSDATE, mdays IN NUMBER DEFAULT 1 ) RETURN DATE DETERMINISTIC IS -- add_mdays returns the DATE that is mdays working days -- after start_date. (If mdays < 0, the DATE returned -- will be before start_date). -- Work days do not include Saturdays, Sundays or holidays -- as indicated in the caln table. new_date DATE; -- to be returned BEGIN SELECT MIN (t.clndr_dt) INTO new_date FROM caln f -- f stands for "from" , caln t -- t stands for "to" WHERE f.clndr_dt = TRUNC (start_date) AND t.shop_days = f.shop_days + TRUNC (mdays) ; RETURN new_date; END add_mdays; / SHOW ERRORS
Production code forge be robust (which includes "fool-proofing").
Try to anticipate what people errors might appeal to your function and correct for them where possible.
For example, if it only makes sense for start_date at midnight, mdays to be an integer, use TRUNC in the function where soembody passes a good value.
Allow default arguments.
Comment of your function. Put all comments within the service (i.e. after CREATION and before the END) so that they will remain in the data dictionary.
If, given the same arguments, the function always returns the same value, mark it as DETERMINISTIC, for efficiency. This means that the system will remember the values transmitted rather than to call the function whenever it is said to.I wish I could score questions such as 'Correct' or 'useful '; you get 10 points for sure.
You posted CREATE TABLE and INSERT statements (without even be begged).
You gave a clear description of the problem, including the expected results.
The code is well formatted and easy to read.
All around, one of the more thoughtful and well written questions I've seen.
Play well! Keep up the good work!Published by: Frank Kulash, February 2, 2010 13:10
Added to my own version of the function. -
Functions in pipeline for the csv data analysis?
Hi all
I currently have a pl/sql procedure that is used to load and parse a CSV file in a table of database within the Apex.
Downloading csv files are quite large (nearly 1 million rows or more) and there is a time of significant waiting for the course ends. I tried both Wizard 4.2 data that was very slow loading and the apex plugin excel2collection who timed out/never finished.
I heard functions in pipeline and how they can offer great time savings for insert instructions where the database lines have no interconnect/dependencies to each other.
My question is, would the data through pipes to offer me a gain with my time insert statements, and if so someone could help me to implement? The current procedure is listed below, less any code validation etc. for readability. The CSV is first uploaded to a table in a BLOB file before be analyzed by the procedure.
-- Chunk up the CSV file and split into a line at a time rawChunk := dbms_lob.substr(bloContent, numChunkLength, numPosition + numExtra); strConversion := strConversion || utl_raw.cast_to_varchar2(rawChunk); numLineEnd := instr(strConversion,chr(10),1); --This will return 0 if there is no chr(10) in the String strColumns := replace(substr(strConversion,1,numLineEnd -numTrailChar),CHR(numSpacer),','); strLine := substr(strConversion,1,numLineEnd); strLine := substr(strLine,1,length(strLine) - numTrailChar); -- Break each line into columns using the delimeter arrData := wwv_flow_utilities.string_to_table (strLine, '|'); FOR i in 1..arrData.count LOOP --Now we concatenate the Column Values with a Comma strValues := strValues || arrData(i) || ','; END LOOP; --Remove the trailing comma strValues := rtrim(strValues,','); -- Insert the values into target table, one row at a time BEGIN EXECUTE IMMEDIATE 'INSERT INTO ' || strTableName || ' (' || strColumns || ') VALUES (' || strValues || ')'; END; numRow := numRow + 1; --Keeps track of what row is being converted -- We set/reset the values for the next LOOP cycle strLine := NULL; strConversion := null; strValues := NULL; numPosition := numPosition + numLineEnd; numExtra := 0; numLineEnd := 0; END IF; END LOOP;
Apex-user wrote:
Hi Chris,
I'm trying to expand your code to use more tou both current columns, but having trouble with the format here...
- While (l_clob) dbms_lob.getlength > l_off and l_off > 0 loop
- l_off_new: = instr (l_clob, c_sep, l_off, c_numsep);
- line (csv_split_type)
- substr (l_clob, l_off, instr (l_clob, c_sep, l_off)-l_off)
- , substr (l_clob, instr (l_clob, c_sep, l_off) + 1, l_off_new - instr (l_clob, c_sep, l_off) - 1)
- ));
- l_off: = l_off_new + 2; -to switch c_sep and line (10 sep
How can I add more columns to this code? I'm mixed with all segments of substr and instr.
I've done a rewrite on it (12 sec for 50,000 lines, 4 columns ~ 7 MB, 2.2 sec for 10,000 lines)
create or replace function get_csv_split_cr (blob p_blob)
return csv_table_split_type
pipelined
as
c_sep constant varchar2 (2): = "";
c_line_end constant varchar2 (1): = Chr (10);
l_row varchar2 (32767).
number of l_len_clob;
number of l_off: = 1;
CLOB l_clob;
-below is used only for the call of dbms_lob.converttoclob
l_src_off pls_integer: = 1;
l_dst_off pls_integer: = 1;
number of l_ctx: = dbms_lob. DEFAULT_LANG_CTX;
number of l_warn: = dbms_lob. WARN_INCONVERTIBLE_CHAR;
Start
DBMS_LOB.CREATETEMPORARY (l_clob, true);
DBMS_LOB.converttoclob (l_clob, p_blob, dbms_lob.lobmaxsize, l_src_off, l_dst_off, dbms_lob. DEFAULT_CSID, l_ctx, l_warn);
-Attention: hypothesis that there is at least a 'correct' csv-line
-should perhaps find a better guard condition
-Hypothesis: last column ends with the separator
l_len_clob: = length (l_clob);
While l_len_clob > l_off and l_off > 0 loop
l_row: = substr (l_clob, l_off, instr (l_clob, c_line_end, l_off)-l_off);
line (csv_split_type)
-start of the first; occurrence - 1
substr (l_row, 1, instr (l_row, c_sep) - 1)
-first; second occurrence; accident - first; occurrence
, substr (l_row, instr (l_row, c_sep, 1, 1) + 1, instr (l_row, c_sep, 1, 2) - instr (l_row, c_sep, 1, 1) - 1)
-second; third occurrence; occurrence - second; occurrence
, substr (l_row, instr (l_row, c_sep, 1, 2) + 1, instr (l_row, c_sep, 1, 3) - instr (l_row, c_sep, 1, 2) - 1)
- and so on
, substr (l_row, instr (l_row, c_sep, 1, 3) + 1, instr (l_row, c_sep, 1, 4) - instr (l_row, c_sep, 1, 3) - 1)
));
l_off: = l_off + length (l_row) + 1; -to switch c_sep and line (10 sep
end loop;
return;
end;
You must change the csv_split_type also.
Update: I had to correct, combined version of two upward.
-
Help for the reconciliation of table. Average cost
So this is my attempt to imitate a function block that we use in our standard converter software - "Decimation filter" which is nothing more than a running average / mobile. The sample size is adjustable to execution of 2 to 64 samples (decimation factor). I saw many topics on this and used to average around 4 large samples shift registers - but I wanted to be able to change the sample size without recompiling. I'm new to LV, there is likely a lot of better ways to do this.
I would like to have answered is linked to clear the table, if the decimation factor is set to a lower number than the last time that the loop executed. (The uppercase - false statement is wired directly by)
The math in the shift register: creates an array index that cycles from 0 to (decimation Factor-1). The index is then used to fill elements in the table (the rest being zeros). When the decimation factor decreases, I need zero external element in (former decimation factor - 1) (new decimation Factor-1) positions. So I tried various things, but the only thing that seems to work, it's the re - initialize the array. I think it's less than optimal.
I tried:
(1) leaving the tunnel of continuous wire output for the real deal and selecting the option 'use default if unwired' - thinking I'd get a table of 64 elements, of zeros. Doesn't seem to work.
(2) a constant matrix cable tunnel exit if this value is true. When I followed him, after a decline in decimation factor - the probe seems to indicate an array of elements, not 64 No. And I do not see how to specify the size of the array of constant matrix.
If I use this in my application it will run on a target of cRIO.
Any help much appreciated.
You already have your initialized table, why not use it? Wire your table initialized via if this value is TRUE. Or better yet, use Select? function.
-
Hi all
I need help license the following environment:
1 400 VDIs.
2. associated VDI servers.
3-8 non - VDI associated servers.
This environment runs on 6 dual CPU servers.
Concerning
For this, but all these already include vSphere, ESX and vCenter licenses.
Advanced also include VSAN.
Advanced horizon is available as simultaneous user and username, so if you can choose what type of license would be the most suitable for you, in most cases, the concurrency model is best suited.
So say you have 400 concurrent users, you need 400 advanced Horizon permits and are then all included vSphere licenses.
Linjo
-
Using the interval function works well for the end of the month
I need to be able to get 1 year, 2 years, etc and also 1 month 2 months ago for each date in the calendar. I can use the function of the INTERVAL for the most part, but it does not work if there is 1 month (year) would produce an invalid date.For example, the monitoring generates an error.
Select TO_DATE (February 29, 2012 ')- INTERVAL of '1' YEAR FROM DUAL;
Select TO_DATE('31-MAR-2011') - MONTH INTERVAL '1' FROM DUAL;
Is there a way to get chosen to return on February 28, 2011?
Thank you for your help.
Sandy
Hi, Sandy,
ADD_MONTHs always returns a valid DATE.
ADD_MONTHS (TO_DATE ((29 février 2012 ', «DD-MON-YYYY»), 12 * n))
will return on February 29, n years after 2012, if this year is a leap year and February 28 this year, if it is not a leap year.
In general
ADD_MONTHS (d, m)
Returns the date months after DATE m d. If d is located near the end of his month and months m months in the future is for several days, then ADD_MONTHS returns the last day of that month. By example, if d is on 31 March and 1 m, then ADD_MONTHS returns the last day in April (1 month after March), because there is no day 31 in April.
Maybe you are looking for
-
What HARD drive I use for Satellite L305D-s5868?
I need to replace the drive hard on my * Satellite L305d-s5868 *.What is the form factor for a replacement disk?* (Width, Height, Length) *. Can a * SATA II drive * be used? TIA
-
Hello everyone. Today, I see on this forum people discuss issues of CD/DVD on L30/L300/L350. I want to share my experience on this issue and hope that everyone shares your experience as well. My laptop Toshiba L30 PSL33 and Toshiba L300 PSLB2E there.
-
My operating system is Windows 7 Professional 32-bit; an upgrade to Windows XP Edition family. In addition to office 2007 Windows Update Office Genuine Advantage important Notifications (KB949810) update, installation failed repeatedly, Windows Upda
-
Hi so I have updated my Realtek drivers and had a windows update both at the same time. After the reboot, I went to see no Dolby Audio. It has been blown off to clean. I tried to look in the C:/OEM/Preload/Autorun/Realtek Audio Codec_M ALC255 and fou
-
CD player will not recognize__
My computer does not recognize my cd drive. I installed a printer and this player went as well. I used Mr. Fixit and it works the first time, then an hour later it stopped again to recognize it. How can I fix it?