while insertind data using insert command it is not working - insert

insert into ra_bdr_msc_telco( Id , accessPointName , balance , bearerService , callForwardNumber , callPartnerExt , callType , calledIMSI , calledNumber , callingIMSI , callingNumber , causeForRecordClosing , cellID , cfwIMSI , cfwNumber , chargeTotal , chargingID , chargingIndicator , dataVolumeDownlink , dataVolumeUplink , dayCode , defaultPriority , duration , endDate , endTime , fileId , filePos , forwardingReason , ggsnAddress , iMEI , incomingRoute , lac , localeID , mcc , mediatedTime , mediationId , mmscSequenceNumber , mnc , msLocation , mscIdentity , netWorkElement , networkID , nodeID , originalCallPartner , outgoingRoute , prePostFlag , priorityLevel , productID , rated , recordSequenceNumber , reserved1 , reserved2 , reserved3 , reserved4 , reserved5 , reserved6 , roam , scpAddress , servedMSISDN , serviceKey , serviceTypeID , smscReferenceNumber , sourceId , startDate , startTime , tariffSwitchInd , teleServiceCode , terminationType , timeZone , volume) values('111222333','NULL','NULL','','NULL','NULL','MO','NULL','96898785034222','413024100494697','776582419','NULL','Hitech City5,'NULL','NULL','NULL','NULL','CallingParty','NULL','NULL','NULL','NULL','32','2012-02-02','13:41:50','b01298689.dat.old','NULL','NULL','NULL','354750040197530','HRAMBA4-BSC','20088','20088','NULL','11/25/14 10:10 PM','','NULL','14F320','NULL','00FF02','MSC','NULL','NULL','NULL','TMGW3H_IP','PREPAID','NULL','NULL','','NULL','NULL','NULL','NULL','NULL','NULL','b01298689','NULL','NULL','1994776582419','NULL','VOICE_IDD','NULL','5','2012-02-02','13:41:18','NULL','11','0','+5:30','NULL');
im trying to insert 69 values for 69 fields..after clicking on enter in the next line it is showing "'> "symbol

You have unclosed quotes near "'Hitech City5,"

Related

Using Cumulative and Percent Rank functions in my query

I'm working on this query and would like to use the cumulative distribution or percent rank function to provide me with cumulative distribution and the percent rank for field 'leads distribution'. however, it appears that when the decile value is populated it doesn't give me the right number for that decile for example the LeadGrouping record 'FLJeffersonCollateral' should have a decile of 1 but is showing a decile of 2. Can you help what am I doing wrong? Below is the query.
Select c.LeadGrouping
, c.StateID
, c.County
, c.Media_Type
, Sum(c.Leads) as 'Leads'
, Sum(isnull(c.CCPEnroll,0)) as 'CCPEnroll'
, c.CloseRate
--, row_number() over(partition by c.Field1 order by c.CloseRate desc) as line_number
, sum(mx.MaxLeads) as 'MaxLeads' --ALTER TO MAX LEADS OVERALL --sum(mx.MaxLeads)
, CONVERT(DECIMAL(10,10), isnull(Sum(c.leads),0) / convert(numeric, isnull(sum(mx.MaxLeads),0))) as 'LeadDistribution' --CONFIRM TOTAL SUMS TO 100%
, PERCENT_RANK () over (order by Convert (Decimal(10,10), (isnull(Sum(c.leads),0) / convert(numeric, isnull(sum(mx.MaxLeads),0))))) as 'percent rank'
From (Select 'A' as 'Field1'
, b.LeadGrouping
, b.StateID
, b.County
, b.Media_Type
, Sum(b.Leads) as 'Leads'
, Sum(b.CCPEnroll) as 'CCPEnroll'
, CONVERT(DECIMAL(5,2), isnull(Sum(b.CCPEnroll),0) / convert(numeric, isnull(Sum(b.Leads),0))) as 'CloseRate'
From (Select a.LeadGrouping
, a.StateID
, a.County
, a.Media_Type
, Sum(a.Lead) as 'Leads'
, Sum(a.CCPEnroll) as 'CCPEnroll'
From (Select distinct al.LeadID
, al.Interaction_ID
, al.createddate
, al.appointmentdate
, al.C2CExp
, Case When al.EnrollMonth is not null Then DateDiff(day, al.createddate, al.AppDate)
Else DateDiff(day, al.createddate, GETDATE()) End as 'LeadTenureInDays'
, Count(distinct i.interaction_id) as 'LeadInteractionCount'
, l.lead_interactionsource__c
, al.MarketID
, left(al.state_county_key,2) as 'StateID'
, al.County
, al.Media_Type
, al.SegmentName
, al.Correctcampaign
, c.name as 'CampaignName'
, c.lead_program__c
, l.lead_disposition__c
, al.CCPEnroll
, al.PDPEnroll
, al.AppDate
, al.EnrollMonth
, al.writingagentid
, p.ProducerType
, al.Lead
, case When f.fipscode is null Then 'Not In CCP Footprint'
When f.FIPSCode is not null Then 'In CCP Footprint'
else 'ERROR' End as 'Footprint'
, CONCAT(left(al.state_county_key,2),al.county, al.Media_Type) as 'LeadGrouping'
From rknow.dbo.allleadstemp2 al
Left Join rknow.dbo.campaign_sfdc_datalake c on al.correctcampaign = c.id
Left Join rknow.dbo.lead_sfdc_datalake l on al.leadid = l.id
Left Join rknow.dbo.producerstructure_datalake p on al.writingagentid = p.producerid and al.createddate >= p.effectivestartdate and al.createddate <= DateAdd(day, 1, p.effectiveenddate)
Left Join [RKnow].[rpt].[interaction] i on al.leadid = i.lead_id
Inner Join rknow.dbo.fipsspc f on al.fips = f.fipscode --2022 CCP County Level Footprint
Where al.C2CExp >= DateAdd(day,1,getdate())
and al.lead_type = 'ccp' --HD 12/04/2020: Added criteria filter to exclude CrossSell leads
Group by al.LeadID
, al.Interaction_ID
, al.C2CExp
, al.createddate
, al.MarketID
, al.state_county_key
, al.County
, al.Media_Type
, al.SegmentName
, al.Correctcampaign
, al.appointmentdate
, c.name
, c.lead_program__c
, l.lead_disposition__c
, al.CCPEnroll
, al.PDPEnroll
, al.EnrollMonth
, al.writingagentid
, p.ProducerType
, l.lead_interactionsource__c
, al.AppDate
, f.fipscode
, al.Lead) a
Group by a.LeadGrouping
, a.Media_Type
, a.StateID
, a.County) b
Group by b.LeadGrouping
, b.StateID
, b.County
, b.Media_Type) c
Left Join (Select distinct 'A' as 'Field1', sum(mx.lead) as 'MaxLeads'
From(Select distinct al.LeadID
, al.Interaction_ID
, al.createddate
, al.appointmentdate
, al.C2CExp
, Case When al.EnrollMonth is not null Then DateDiff(day, al.createddate, al.AppDate)
Else DateDiff(day, al.createddate, GETDATE()) End as 'LeadTenureInDays'
, Count(distinct i.interaction_id) as 'LeadInteractionCount'
, l.lead_interactionsource__c
, al.MarketID
, left(al.state_county_key,2) as 'StateID'
, al.County
, al.Media_Type
, al.SegmentName
, al.Correctcampaign
, c.name as 'CampaignName'
, c.lead_program__c
, l.lead_disposition__c
, al.CCPEnroll
, al.PDPEnroll
, al.AppDate
, al.EnrollMonth
, al.writingagentid
, p.ProducerType
, al.Lead
, case When f.fipscode is null Then 'Not In CCP Footprint'
When f.FIPSCode is not null Then 'In CCP Footprint'
else 'ERROR' End as 'Footprint'
, CONCAT(left(al.state_county_key,2),al.county, al.Media_Type) as 'LeadGrouping'
From rknow.dbo.allleadstemp2 al
Left Join rknow.dbo.campaign_sfdc_datalake c on al.correctcampaign = c.id
Left Join rknow.dbo.lead_sfdc_datalake l on al.leadid = l.id
Left Join rknow.dbo.producerstructure_datalake p on al.writingagentid = p.producerid and al.createddate >= p.effectivestartdate and al.createddate <= DateAdd(day, 1, p.effectiveenddate)
Left Join [RKnow].[rpt].[interaction] i on al.leadid = i.lead_id
Inner Join rknow.dbo.fipsspc f on al.fips = f.fipscode --2022 CCP County Level Footprint
Where al.C2CExp >= DateAdd(day,1,getdate())
and al.lead_type = 'ccp' --HD 12/04/2020: Added criteria filter to exclude CrossSell leads
Group by al.LeadID
, al.Interaction_ID
, al.C2CExp
, al.createddate
, al.MarketID
, al.state_county_key
, al.County
, al.Media_Type
, al.SegmentName
, al.Correctcampaign
, al.appointmentdate
, c.name
, c.lead_program__c
, l.lead_disposition__c
, al.CCPEnroll
, al.PDPEnroll
, al.EnrollMonth
, al.writingagentid
, p.ProducerType
, l.lead_interactionsource__c
, al.AppDate
, f.fipscode
, al.Lead) mx) mx on mx.Field1 = c.Field1
Group by c.LeadGrouping
, c.StateID
, c.County
, c.Media_Type
, c.CloseRate
, c.Field1

Error(57,5): PL/SQL: ORA-00984: column not allowed here for creating stored procedures

I have created a stored procedure but while compiling it, I am getting error as
Error(57,5): PL/SQL: ORA-00984: column not allowed here
Below is my query
create or replace PROCEDURE NEIQC_DATA_DUMP_MST AS
BEGIN
execute immediate 'truncate table TBL_NEIQC_WF_SITE_MST';
INSERT INTO TBL_NEIQC_WF_SITE_MST
(
OBJECTID,
SAP_ID,
NETWORK_ENTITY_ID ,
SITE_NAME ,
SITE_ADDRESS ,
MAINTENANCEZONE_CODE ,
INVENTORY_TYPE ,
TYPE_NAME ,
SITE_STATUS_CODE ,
NE_MODIFIED_DATE ,
NE_MODIFIED_BY ,
CREATED_DATE ,
CREATED_BY ,
STRUCTURE_NAME ,
RJ_CITY_CODE ,
RJ_R4G_STATE_CODE ,
RJ_DISTRICT_CODE ,
RJ_TALUK_CODE ,
RJ_JC_CODE ,
RJ_JIOPOINT_SAPCODE ,
RJ_COMPANY_CODE_1 ,
RJ_COMPANY_CODE_2
)
VALUES
(
OBJECTID ,
RJ_SAPID,
RJ_NETWORK_ENTITY_ID ,
RJ_SITE_NAME ,
RJ_SITE_ADDRESS ,
RJ_MAINTENANCE_ZONE_CODE ,
'',
TYPE_NAME ,
'ACTIVE',
RJ_LAST_MODIFIED_DATE,
RJ_LAST_MODIFIED_BY ,
SYSDATE,
'SCHEDULER',
STRUCTURE_NAME ,
RJ_CITY_CODE ,
RJ_R4G_STATE_CODE ,
RJ_DISTRICT_CODE ,
RJ_TALUK_CODE ,
RJ_JC_CODE ,
RJ_JIOPOINT_SAPCODE ,
RJ_COMPANY_CODE_1 ,
RJ_COMPANY_CODE_2
);
COMMIT;
END NEIQC_DATA_DUMP_MST;
please suggest what is wrong
your insert Statement should look like
INSERT INTO TBL_NEIQC_WF_SITE_MST
(
OBJECTID,
SAP_ID,
NETWORK_ENTITY_ID ,
SITE_NAME ,
SITE_ADDRESS ,
MAINTENANCEZONE_CODE ,
INVENTORY_TYPE ,
TYPE_NAME ,
SITE_STATUS_CODE ,
NE_MODIFIED_DATE ,
NE_MODIFIED_BY ,
CREATED_DATE ,
CREATED_BY ,
STRUCTURE_NAME ,
RJ_CITY_CODE ,
RJ_R4G_STATE_CODE ,
RJ_DISTRICT_CODE ,
RJ_TALUK_CODE ,
RJ_JC_CODE ,
RJ_JIOPOINT_SAPCODE ,
RJ_COMPANY_CODE_1 ,
RJ_COMPANY_CODE_2
)
select
OBJECTID ,
RJ_SAPID,
RJ_NETWORK_ENTITY_ID ,
RJ_SITE_NAME ,
RJ_SITE_ADDRESS ,
RJ_MAINTENANCE_ZONE_CODE ,
'',
TYPE_NAME ,
'ACTIVE',
RJ_LAST_MODIFIED_DATE,
RJ_LAST_MODIFIED_BY ,
SYSDATE,
'SCHEDULER',
STRUCTURE_NAME ,
RJ_CITY_CODE ,
RJ_R4G_STATE_CODE ,
RJ_DISTRICT_CODE ,
RJ_TALUK_CODE ,
RJ_JC_CODE ,
RJ_JIOPOINT_SAPCODE ,
RJ_COMPANY_CODE_1 ,
RJ_COMPANY_CODE_2
from ne_structures -- if this is your table
;

What is the meaning of "unable to open iterator for an alias" in pig?

I was trying to use the union operator like as show below
uni_b = UNION A, B, C, D, E, F, G, H;
here all the relations A,B,C...H are having same schema
when ever I am using the dump operator, till 85% it running fine.. after that it is showing the following error..
ERROR 1066: Unable to open iterator for alias uni_b
what is this? where is the problem? how should I debug?
this is my pig script...
ip = load '/jee/jee_data.txt' USING PigStorage(',') as (id:Biginteger, fname:chararray , lname:chararray , board:chararray , eid:chararray , gender:chararray , math:double , phy:double , chem:double , jeem:double , jeep:double , jeec:double ,cat:chararray , dob:chararray);
todate_ip = foreach ip generate id, fname , lname , board , eid , gender , math , phy , chem , jeem , jeep , jeec , cat , ToDate(dob,'dd/MM/yyyy') as dob;
jnbresult1 = foreach todate_ip generate id, fname , lname , board , eid , gender , math , phy , chem , jeem , jeep , jeec, ROUND_TO(AVG(TOBAG( math , phy , chem )),3) as bresult, ROUND_TO(SUM(TOBAG(jeem , jeep , jeec )),3) as jresult , cat , dob;
rankjnbres = rank jnbresult1 by jresult DESC , bresult DESC , jeem DESC, math DESC, jeep DESC, phy DESC, jeec DESC, chem DESC, gender ASC, dob ASC, fname ASC, lname ASC DENSE;
rankjnbres1 = rank jnbresult1 by bresult DESC , jeem DESC, math DESC, jeep DESC, phy DESC, jeec DESC, chem DESC, gender ASC, dob ASC, fname ASC, lname ASC DENSE;
allper = foreach rankjnbres generate id, rank_jnbresult1 , fname , lname , board , eid , gender , math , phy , chem , jeem , jeep , jeec, bresult, jresult , cat , dob , ROUND_TO(((double)((10000-rank_jnbresult1)/100.000)),3) as aper;
allper1 = foreach rankjnbres1 generate id, rank_jnbresult1 , fname , lname , board , eid , gender , math , phy , chem , jeem , jeep , jeec, bresult, jresult , cat , dob , ROUND_TO(((double)((10000-rank_jnbresult1)/100.000)),3) as a1per;
SPLIT allper into cbseB if board=='CBSE', anbB if board=='Andhra Pradesh', apB if board=='Arunachal Pradesh', bhB if board=='Bihar', gjB if board=='Gujarat' , jnkB if board=='Jammu and Kashmir', mpB if board=='Madhya Pradesh', mhB if board=='Maharashtra', rjB if board=='Rajasthan' , ngB if board=='Nagaland' , tnB if board=='Tamil Nadu' , wbB if board=='West Bengal' , upB if board=='Uttar Pradesh';
rankcbseB = rank cbseB by jresult DESC , bresult DESC , jeem DESC, math DESC, jeep DESC, phy DESC, jeec DESC, chem DESC, gender ASC, dob ASC, fname ASC, lname ASC DENSE;
grp = group rankcbseB all;
maxno = foreach grp generate MAX(rankcbseB.rank_cbseB) as max1;
cbseper = foreach rankcbseB generate id, rank_cbseB , fname , lname , board , eid , gender , math , phy , chem , jeem , jeep , jeec, bresult, jresult , cat , dob , ROUND_TO(((double)((maxno.max1-rank_cbseB)*100.000/maxno.max1)),3) as per , aper;
rankBcbseB = rank cbseB by bresult DESC , jeem DESC, math DESC, jeep DESC, phy DESC, jeec DESC, chem DESC, gender ASC, dob ASC, fname ASC, lname ASC DENSE;
grp = group rankBcbseB all;
maxno = foreach grp generate MAX(rankBcbseB.rank_cbseB) as max1;
Bcbseper = foreach rankBcbseB generate id, rank_cbseB , fname , lname , board , eid , gender , math , phy , chem , jeem , jeep , jeec, bresult, jresult , cat , dob , ROUND_TO(((double)((maxno.max1-rank_cbseB)*100.000/maxno.max1)),3) as bper , aper;
rankanbB = rank anbB by jresult DESC , bresult DESC , jeem DESC, math DESC, jeep DESC, phy DESC, jeec DESC, chem DESC, gender ASC, dob ASC, fname ASC, lname ASC DENSE;
grp = group rankanbB all;
maxno = foreach grp generate MAX(rankanbB.rank_anbB) as max1;
anbper = foreach rankanbB generate id, rank_anbB , fname , lname , board , eid , gender , math , phy , chem , jeem , jeep , jeec, bresult,jresult , cat , dob , ROUND_TO(((double)((maxno.max1-rank_anbB)*100.000/maxno.max1)),3) as per , aper;
rankBanbB = rank anbB by bresult DESC , jeem DESC, math DESC, jeep DESC, phy DESC, jeec DESC, chem DESC, gender ASC, dob ASC, fname ASC, lname ASC DENSE;
grp = group rankBanbB all;
maxno = foreach grp generate MAX(rankBanbB.rank_anbB) as max1;
Banbper = foreach rankanbB generate id, rank_anbB , fname , lname , board , eid , gender , math , phy , chem , jeem , jeep , jeec, bresult, jresult , cat , dob , ROUND_TO(((double)((maxno.max1-rank_anbB)*100.000/maxno.max1)),3) as bper , aper;
joinall = join cbseper by (per) , Bcbseper by (bper) ;
joinall = foreach joinall generate Bcbseper::id as id,cbseper::jresult as b1;
A = cross Bcbseper , allper;
A1 = foreach A generate Bcbseper::id as id,Bcbseper::rank_cbseB as rank,Bcbseper::fname as fname,Bcbseper::lname as lname,Bcbseper::board as board,Bcbseper::eid as eid ,Bcbseper::gender as gender, Bcbseper::bresult as bresult,Bcbseper::jresult as jresult,Bcbseper::cat as cat,Bcbseper::dob as dob,Bcbseper::bper as bper,Bcbseper::aper as aper,allper::jresult as b2,allper::aper as a1per;
B = filter A1 by bper > a1per;
C = group B by id;
Dcbse = foreach C {
E = order B by a1per DESC;
F = limit E 1;
generate FLATTEN(F.id) , FLATTEN(F.b2);
};
joincbse = join joinall by id , Dcbse by id;
joincbse = foreach joincbse generate joinall::id as id , joinall::b1 as b1, Dcbse::null::b2 as b2;
joinall = join anbper by (per) , Banbper by (bper) ;
joinall = foreach joinall generate Banbper::id as id,anbper::jresult as b1;
A = cross Banbper , allper;
A1 = foreach A generate Banbper::id as id,Banbper::rank_anbB as rank,Banbper::fname as fname,Banbper::lname as lname,Banbper::board as board,Banbper::eid as eid ,Banbper::gender as gender, Banbper::bresult as bresult,Banbper::jresult as jresult,Banbper::cat as cat,Banbper::dob as dob,Banbper::bper as bper,Banbper::aper as aper,allper::jresult as b2,allper::aper as a1per;
B = filter A1 by bper > a1per;
C = group B by id;
Danb = foreach C {
E = order B by a1per DESC;
F = limit E 1;
generate FLATTEN(F.id) , FLATTEN(F.b2);
};
joinanb = join joinall by id , Danb by id;
joinanb = foreach joinanb generate joinall::id as id , joinall::b1 as b1, Danb::null::b2 as b2;
uni_b = UNION joincbse , joinanb ;
I got the solution to this. What is did was the following...
First i stored all the relations A, B, C, .... using store operation as follows
STORE A into into '/opA/' using PigStorage(',');
Then, I Loaded the input for all the relation using load operation as follows
ipA = load '/opA/part-r-00000' USING PigStorage (',') as (id:Biginteger, b1: double, b2: double);
And at last I did the union using the union operation as follows
uni_b = UNION ipA ,ipB ,ipC , ipD ,ipE ;
I got the answer without any error.

Error while trying to update a table column in BLOB datatype

I have a table 'ANS_CODEDIT_1' with a column KNK_RESP which is of datatype BLOB.
When I tried to update the column, I get this error
ORA-06550: line 2, column 15:
PLS-00172: string literal too long
06550. 00000 - "line %s, column %s:\n%s"
Below is the code I tried to update(i have cut short the BLOB content as its too long). I actually tried with only few letters instead of the huge text. Please help as to how to fix this issue.
set serveroutput on;
declare
v_cl blob:='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns2:tenantProviderScreeningDetailsResponse xmlns:ns2="http://ws.pcsapp.cnsi.com/"><providerResponseDetails><addressVerified>Yes</addressVerified><companyNameVerified>No</companyNameVerified><feinVerified>Yes</feinVerified><nameVerified>No</nameVerified><ssnVerified>Yes</ssnVerified><upinVerified>No</upinVerified><npiErrorCode>00</npiErrorCode><npiValid>Yes</npiValid><leastSanctionRecord><address> </address><boardType>FEDERAL BOARDS</boardType><fraudAbuseFlag></fraudAbuseFlag><lostOfLicenseIndicator></lostOfLicenseIndicator><name> </name><sanctionDate>03/03/2015</sanctionDate><sanctionId>1349</sanctionId><sanctionReason>MET ALL REQUIREMENTS FOR REINSTATEMENT</sanctionReason><sanctionState>MI</sanctionState><sanctionTerm></sanctionTerm><sanctionType>OTHER</sanctionType><source>SAM</source><sourceType>Federal</sourceType><isIncorrectSanction>No</isIncorrectSanction><sanctionName></sanctionName><screeningSource>LN</screeningSource></leastSanctionRecord><id>2728146</id><uniqueId>22302</uniqueId><hasSanctions>Yes</hasSanctions><hasLEIESanctions></hasLEIESanctions><hasEPLSSanctions></hasEPLSSanctions><hasDisciplinarySanctions></hasDisciplinarySanctions><entityType>OR</entityType><enrollmentType>4</enrollmentType></providerResponseDetails><licenses><licenseCertificationType>CLIA</licenseCertificationType><licenseNumber>SUN123C</licenseNumber><licenseState></licenseState><sequenceNumber>1</sequenceNumber><licenseVerified>Yes</licenseVerified><licenseValid>Yes</licenseValid><expiryDate>12/12/2030</expiryDate><nameMatchIndicator>Yes</nameMatchIndicator><licenseAdditionalInformation><licenseCertificationType>CLIA</licenseCertificationType><licenseNumber>SUN123C</licenseNumber><sequenceNumber></sequenceNumber><expiryDate>12/12/2030</expiryDate><streetAddress2></streetAddress2><dateLastSeen>12/12/2030</dateLastSeen><fullName></fullName><firstName></firstName><lastName></lastName><middle></middle><suffix></suffix><licenseStatusCode></licenseStatusCode><licenseStatusDescription></licenseStatusDescription><lastChangeDate></lastChangeDate><certificateName></certificateName><boardCertified></boardCertified><dateFirstReported></dateFirstReported><dateLastReported></dateLastReported><issueDate></issueDate><durationType></durationType><durationDescription></durationDescription><ncpdpId></ncpdpId><storeName></storeName><DBAName></DBAName><openDate></openDate><closedDate></closedDate><faxNumber></faxNumber><email></email><contactName></contactName><open24Hours></open24Hours><hours></hours><acceptsE_Prescriptions></acceptsE_Prescriptions><postalCode></postalCode><deliveryService></deliveryService><compoundingService></compoundingService><language1></language1><durableMedicalEquipment></durableMedicalEquipment><language2></language2><handicapAccess></handicapAccess><language3></language3><county></county><licenseType></licenseType><contactTitle></contactTitle><errorDesc></errorDesc><disciplineinformation></disciplineinformation><dob></dob></licenseAdditionalInformation><screeningSource>LN</screeningSource></licenses><licenses><licenseCertificationType>State License</licenseCertificationType><licenseNumber>SUN124C</licenseNumber><licenseState>MI</licenseState><sequenceNumber>1</sequenceNumber><licenseVerified>Yes</licenseVerified><licenseValid>Yes</licenseValid><expiryDate>06/01/2017</expiryDate><stateLicenseType>R</stateLicenseType><stateLicenseStatus>001</stateLicenseStatus><nameMatchIndicator>Yes</nameMatchIndicator><licenseAdditionalInformation><licenseCertificationType>State License</licenseCertificationType><licenseNumber>SUN124C</licenseNumber><sequenceNumber></sequenceNumber><expiryDate>06/01/2017</expiryDate><companyName></companyName><certificationType></certificationType><laboratoryType></laboratoryType><streetNumber></streetNumber><streetName></streetName><streetSuffix></streetSuffix><streetAddress1></streetAddress1><streetAddress2></streetAddress2><city></city><state></state><zip></zip><unitDesignation></unitDesignation><unitNumber></unitNumber><recordType></recordType><dateFirstSeen></dateFirstSeen><dateLastSeen></dateLastSeen><phone></phone><firstName>GuestInd</firstName><lastName>Trett</lastName><licenseStatusCode>001</licenseStatusCode><certificateName></certificateName><boardCertified></boardCertified><dateFirstReported></dateFirstReported><dateLastReported></dateLastReported><issueDate></issueDate><durationType></durationType><durationDescription></durationDescription><ncpdpId></ncpdpId><storeName></storeName><DBAName></DBAName><openDate></openDate><closedDate></closedDate><faxNumber></faxNumber><email></email><contactName></contactName><open24Hours></open24Hours><zip4></zip4><hours></hours><acceptsE_Prescriptions></acceptsE_Prescriptions><postalCode></postalCode><deliveryService></deliveryService><stateCityZip></stateCityZip><compoundingService></compoundingService><language1></language1><durableMedicalEquipment></durableMedicalEquipment><language2></language2><handicapAccess></handicapAccess><language3></language3><county></county><licenseType>R</licenseType><contactTitle></contactTitle><errorDesc></errorDesc><disciplineinformation></disciplineinformation><dob></dob></licenseAdditionalInformation><screeningSource>LN</screeningSource></licenses><taxonomies><sequenceNumber>1</sequenceNumber><taxonomyCode>163WC3500X</taxonomyCode><taxonomyVerified>Yes</taxonomyVerified></taxonomies><taxonomies><sequenceNumber>2</sequenceNumber><taxonomyCode>163WD0400X</taxonomyCode><taxonomyVerified>No</taxonomyVerified></taxonomies><taxonomies><sequenceNumber>3</sequenceNumber><taxonomyCode>163WD1100X</taxonomyCode><taxonomyVerified>No</taxonomyVerified></taxonomies><taxonomies><sequenceNumber>4</sequenceNumber><taxonomyCode>163WG0000X</taxonomyCode><taxonomyVerified>No</taxonomyVerified></taxonomies><taxonomies><sequenceNumber>5</sequenceNumber><taxonomyCode>163WG0600X</taxonomyCode><taxonomyVerified>No</taxonomyVerified></taxonomies><sanctions><address> </address><boardType>FEDERAL BOARDS</boardType><fraudAbuseFlag></fraudAbuseFlag><lostOfLicenseIndicator></lostOfLicenseIndicator><name> </name><sanctionDate>03/03/2015</sanctionDate><sanctionId>1349</sanctionId><sanctionReason>MET ALL REQUIREMENTS FOR REINSTATEMENT</sanctionReason><sanctionState>MI</sanctionState><sanctionTerm></sanctionTerm><sanctionType>OTHER</sanctionType><source>SAM</source><sourceType>Federal</sourceType><isIncorrectSanction>No</isIncorrectSanction><sanctionName></sanctionName><screeningSource>LN</screeningSource></sanctions><vitalRecord><deceasedFlag>Yes</deceasedFlag><isFederalDeceased>Yes</isFederalDeceased><isStateDeceased>No</isStateDeceased><federalDOD>03/03/2015</federalDOD></vitalRecord><ownershipResponseDetails><referenceID>22302</referenceID><hasSanctions>No</hasSanctions><hasLEIESanctions>No</hasLEIESanctions><hasEPLSSanctions>No</hasEPLSSanctions><isdeceasedFlag>Yes</isdeceasedFlag><leastSanctionRecord><boardType></boardType><conditions></conditions><dob></dob><dateFirstReported></dateFirstReported><dateFirstSeen></dateFirstSeen><dateLastReported></dateLastReported><dateLastSeen></dateLastSeen><fines></fines><fraudAbuseFlag></fraudAbuseFlag><licenseNumber></licenseNumber><licenseReinstatedDate></licenseReinstatedDate><lostOfLicenseIndicator></lostOfLicenseIndicator><nppesVerified></nppesVerified><nationalProviderId></nationalProviderId><processDate></processDate><providerType></providerType><sanctionDate></sanctionDate><sanctionId></sanctionId><sanctionReason></sanctionReason><sanctionState></sanctionState><sanctionSubGroupType></sanctionSubGroupType><sanctionTerm></sanctionTerm><sanctionType></sanctionType><source></source><taxId></taxId><upin></upin><uniqueId></uniqueId><sourceType></sourceType><isIncorrectSanction></isIncorrectSanction><sanctionName></sanctionName><screeningSource></screeningSource></leastSanctionRecord><ssnVerified>Yes</ssnVerified><ssn>999266193</ssn><name>GuestInd Trett </name><isPossibleRelative></isPossibleRelative><hasCriminalHistory>Yes</hasCriminalHistory><individualBpsReports><offenseType>Criminal Offense</offenseType><ssn>999266193</ssn><firstName>GuestInd</firstName><lastName>Trett</lastName><middleName></middleName><fullName>GuestInd Trett </fullName><state>NV</state><source>Department of Corrections</source><convictiondate></convictiondate><caseType></caseType><criminalRecords><ssn>999266193</ssn><firstName>GuestInd</firstName><lastName>Trett</lastName><fullName>GuestInd Trett </fullName><sex>M</sex><stateOfOrigin>Michigan</stateOfOrigin><caseNumber>06002564-FC-A</caseNumber><caseFilingDate>08/17/2010</caseFilingDate><dataSource>Department of Corrections</dataSource><status>CLIENT DISCHARGED</status><offenderId>1234</offenderId><docNumber>609505</docNumber><caseTypeDescription>criminalreprot</caseTypeDescription><criminalOffenses><caseNumber>06002564-FC-A</caseNumber><caseType>Department Of Correction</caseType><caseTypeDescription>CRIMINAL SEXUAL CONDUCT, 3RD DEGREE</caseTypeDescription><count>45</count><county>MI</county><description>Desc</description><maximumTerm>5Years</maximumTerm><minimumTerm>2Years</minimumTerm><numberCounts>5</numberCounts><offenseDate>08/17/2010</offenseDate><offenseType>OT</offenseType><sentence>Sent Start Date: 20090522</sentence><sentenceLengthDescription>Len Des</sentenceLengthDescription><sentenceDate>07/09/2014</sentenceDate><incarcerationDate>07/09/2014</incarcerationDate><appealDisposition>Crim Appeal</appealDisposition><appealFinalDisposition>Appeal</appealFinalDisposition><arrestCaseNumber>06002564-FC-A</arrestCaseNumber><arrestDate>07/09/2014</arrestDate><arrestDisposition>Department</arrestDisposition><arrestDispositionDate>07/09/2014</arrestDispositionDate><arrestLevel>2</arrestLevel><arrestOffense>Off</arrestOffense><arrestStatute>Arrest</arrestStatute><arrestType>T</arrestType><courtCosts>Cos</courtCosts><courtDescription>CRIMINAL SEXUAL CONDUCT</courtDescription><courtDisposition>Dispo</courtDisposition><courtDispositionDate>07/09/2014</courtDispositionDate><courtFine>Fine</courtFine><courtLevel>2</courtLevel><courtOffense>Off</courtOffense><courtPlea>Plea</courtPlea><courtStatute>Stat</courtStatute><courtSuspendedFine>Sus</courtSuspendedFine><courtSentenceProbation>Y</courtSentenceProbation><courtSentenceSuspended>N</courtSentenceSuspended></criminalOffenses><criminalParoleRecords><startDate>07/09/2014</startDate><currentStatus>DISCHARGE FROM PAROLE 20130607; PAR AMENDED DATE:</currentStatus><name>Dert jill</name><paroleRegion>Houston999266193</paroleRegion><supervisingOffice>MI</supervisingOffice><supervisingOfficerName>Sandp11323</supervisingOfficerName><lastKnownResidence><city>WINDSWEPT</city><county>MI</county><state>NV</state><streetAddress1>Address1</streetAddress1><streetName>EASTERN</streetName><streetNumber>6721</streetNumber><zip4>3916</zip4><zip5>89119</zip5></lastKnownResidence><offenseCount>10</offenseCount><actualEndDate>07/09/2014</actualEndDate><county>Conty</county><length>4</length><scheduledEndDate>07/09/2014</scheduledEndDate><dateReported>07/09/2014</dateReported><pubicSaftyId>23</pubicSaftyId><inmateId>32</inmateId><paroleInAbsentiaId>32</paroleInAbsentiaId><race>HISPANIC</race><gender>M</gender><dob>07/09/2014</dob><countyOfBirth>MI</countyOfBirth><stateOfBirth>Michi</stateOfBirth><heightFeet>null</heightFeet><heightInches>null</heightInches><weightInPounds>null</weightInPounds><prisonFacilityType>Sum</prisonFacilityType><prisonFacilityName>FAC</prisonFacilityName><admittedDate>07/09/2014</admittedDate><prisonStatus>Exit</prisonStatus><lastReceiveOrDepartCode>32</lastReceiveOrDepartCode><lastReceiveOrDepartCDate>07/09/2014</lastReceiveOrDepartCDate><recordCreatedTimeStamp>01/02/2 21:11:20</recordCreatedTimeStamp><currentStatusFlag>Y</currentStatusFlag><currentStatusEffectiveDate>07/09/2014</currentStatusEffectiveDate><supervisingOfficerPhone>3234</supervisingOfficerPhone><releaseArrivalDate>07/09/2014</releaseArrivalDate><releaseType>PAROLE</releaseType><releaseCounty>MI</releaseCounty><legalResidenceCounty>MI</legalResidenceCounty><lastParoleReviewDate>08/17/2010</lastParoleReviewDate><is3GOffender>Yes</is3GOffender><isViolentOffender>Yes</isViolentOffender><isSexOffender>Yes</isSexOffender><isOnViolentOffenderProgram>Yes</isOnViolentOffenderProgram><longestTimeToServe>2 Years 1 Months 2 Days</longestTimeToServe><longestTimeToServeDescription>Desc</longestTimeToServeDescription><dischargeDate>07/09/2014</dischargeDate><offenses><sentenceDate>07/09/2014</sentenceDate><length>5</length><offenseCounty>NY</offenseCounty><causeNo>12</causeNo><ncicCode>rr33</ncicCode><offenseCount>6</offenseCount><offenseDate>07/09/2014</offenseDate></offenses><offenses><sentenceDate>07/09/2014</sentenceDate><length>7</length><offenseCounty>MI</offenseCounty><causeNo>45</causeNo><ncicCode>tt44</ncicCode><offenseCount>8</offenseCount><offenseDate>07/09/2014</offenseDate></offenses></criminalParoleRecords><criminalPrisonRecords><custodyType>criminal</custodyType><admittedDate>07/09/2014</admittedDate><location>OGEMAW/WEST BRANCH</location><scheduledReleaseDate>08/17/2010</scheduledReleaseDate><lastGainTime>31/12/2004</lastGainTime><sentence>Sentence Type : PROBATION999266193</sentence><currentStatus>Jail999266193</currentStatus><custodyTypeChangeDate>08/17/2010</custodyTypeChangeDate><gainTimeGranted>5</gainTimeGranted></criminalPrisonRecords><criminalActivitiesRecord><date>31/12/2004</date><description>Desc</description></criminalActivitiesRecord><DOB>31/12/2004</DOB><address><city>WINDSWEPT</city><county>MI</county><state>NV</state><streetAddress1>Address1</streetAddress1><streetName>EASTERN</streetName><streetNumber>6721</streetNumber><zip4>3916</zip4><zip5>89119</zip5></address><stateOfBirth>MI</stateOfBirth><uniqueId>cr01467034129435</uniqueId><race>Y</race><countyOfOrigin>MI</countyOfOrigin><criminalAKAs><first>Jon</first><full>Jon Ki Jr</full><last>Ms.</last><middle>Ki</middle></criminalAKAs><criminalAKAs><first>Keely</first><full>Keely Jon Ms.</full><middle>Jon</middle></criminalAKAs></criminalRecords><uniqueId>cr01467034129435</uniqueId><isIncorrectBPSReport>No</isIncorrectBPSReport><offenseId>-1756511382</offenseId></individualBpsReports><individualBpsReports><offenseType>Criminal Offense</offenseType><ssn>999266193</ssn><firstName>GuestInd</firstName><lastName>Trett</lastName><middleName></middleName><fullName>GuestInd Trett </fullName><state>NV</state><source>Department of Corrections</source><convictiondate></convictiondate><caseType></caseType><criminalRecords><ssn>999266193</ssn><firstName>GuestInd</firstName><lastName>Trett</lastName><fullName>GuestInd Trett </fullName><sex>M</sex><stateOfOrigin>Michigan</stateOfOrigin><caseNumber>06002564-FC-A</caseNumber><caseFilingDate>08/17/2010</caseFilingDate><dataSource>Department of Corrections</dataSource><status>CLIENT DISCHARGED</status><offenderId>1234</offenderId><docNumber>609505</docNumber><caseTypeDescription>criminalreprot</caseTypeDescription><criminalOffenses><caseNumber>06002564-FC-A</caseNumber><caseType>Department Of Correction</caseType><caseTypeDescription>CRIMINAL SEXUAL CONDUCT, 3RD DEGREE</caseTypeDescription><count>45</count><county>MI</county><description>Desc</description><maximumTerm>5Years</maximumTerm><minimumTerm>2Years</minimumTerm><numberCounts>5</numberCounts><offenseDate>08/17/2010</offenseDate><offenseType>OT</offenseType><sentence>Sent Start Date: 20090522</sentence><sentenceLengthDescription>Len Des</sentenceLengthDescription><sentenceDate>07/09/2014</sentenceDate><incarcerationDate>07/09/2014</incarcerationDate><appealDisposition>Crim Appeal</appealDisposition><appealFinalDisposition>Appeal</appealFinalDisposition><arrestCaseNumber>06002564-FC-A</arrestCaseNumber><arrestDate>07/09/2014</arrestDate><arrestDisposition>Department</arrestDisposition><arrestDispositionDate>07/09/2014</arrestDispositionDate><arrestLevel>2</arrestLevel><arrestOffense>Off</arrestOffense><arrestStatute>Arrest</arrestStatute><arrestType>T</arrestType><courtCosts>Cos</courtCosts><courtDescription>CRIMINAL SEXUAL CONDUCT</courtDescription><courtDisposition>Dispo</courtDisposition><courtDispositionDate>07/09/2014</courtDispositionDate><courtFine>Fine</courtFine><courtLevel>2</courtLevel><courtOffense>Off</courtOffense><courtPlea>Plea</courtPlea><courtStatute>Stat</courtStatute><courtSuspendedFine>Sus</courtSuspendedFine><courtSentenceProbation>Y</courtSentenceProbation><courtSentenceSuspended>N</courtSentenceSuspended></criminalOffenses><criminalParoleRecords><startDate>07/09/2014</startDate><currentStatus>DISCHARGE FROM PAROLE 20130607; PAR AMENDED DATE:</currentStatus><name>Dert jill</name><paroleRegion>Houston999266193</paroleRegion><supervisingOffice>MI</supervisingOffice><supervisingOfficerName>Sandp11323</supervisingOfficerName><lastKnownResidence><city>WINDSWEPT</city><county>MI</county><state>NV</state><streetAddress1>Address1</streetAddress1><streetName>EASTERN</streetName><streetNumber>6721</streetNumber><zip4>3916</zip4><zip5>89119</zip5></lastKnownResidence><offenseCount>10</offenseCount><actualEndDate>07/09/2014</actualEndDate><county>Conty</county><length>4</length><scheduledEndDate>07/09/2014</scheduledEndDate><dateReported>07/09/2014</dateReported><pubicSaftyId>23</pubicSaftyId><inmateId>32</inmateId><paroleInAbsentiaId>32</paroleInAbsentiaId><race>HISPANIC</race><gender>M</gender><dob>07/09/2014</dob><countyOfBirth>MI</countyOfBirth><stateOfBirth>Michi</stateOfBirth><heightFeet>null</heightFeet><heightInches>null</heightInches><weightInPounds>null</weightInPounds><prisonFacilityType>Sum</prisonFacilityType><prisonFacilityName>FAC</prisonFacilityName><admittedDate>07/09/2014</admittedDate><prisonStatus>Exit</prisonStatus><lastReceiveOrDepartCode>32</lastReceiveOrDepartCode><lastReceiveOrDepartCDate>07/09/2014</lastReceiveOrDepartCDate><recordCreatedTimeStamp>01/02/2 21:11:20</recordCreatedTimeStamp><currentStatusFlag>Y</currentStatusFlag><currentStatusEffectiveDate>07/09/2014</currentStatusEffectiveDate><supervisingOfficerPhone>3234</supervisingOfficerPhone><releaseArrivalDate>07/09/2014</releaseArrivalDate><releaseType>PAROLE</releaseType><releaseCounty>MI</releaseCounty><legalResidenceCounty>MI</legalResidenceCounty><lastParoleReviewDate>08/17/2010</lastParoleReviewDate><is3GOffender>Yes</is3GOffender><isViolentOffender>Yes</isViolentOffender><isSexOffender>Yes</isSexOffender><isOnViolentOffenderProgram>Yes</isOnViolentOffenderProgram><longestTimeToServe>2 Years 1 Months 2 Days</longestTimeToServe><longestTimeToServeDescription>Desc</longestTimeToServeDescription><dischargeDate>07/09/2014</dischargeDate><offenses><sentenceDate>07/09/2014</sentenceDate><length>5</length><offenseCounty>NY</offenseCounty><causeNo>12</causeNo><ncicCode>rr33</ncicCode><offenseCount>6</offenseCount><offenseDate>07/09/2014</offenseDate></offenses><offenses><sentenceDate>07/09/2014</sentenceDate><length>7</length><offenseCounty>MI</offenseCounty><causeNo>45</causeNo><ncicCode>tt44</ncicCode><offenseCount>8</offenseCount><offenseDate>07/09/2014</offenseDate></offenses></criminalParoleRecords><criminalPrisonRecords><custodyType>criminal</custodyType><admittedDate>07/09/2014</admittedDate><location>OGEMAW/WEST BRANCH</location><scheduledReleaseDate>08/17/2010</scheduledReleaseDate><lastGainTime>31/12/2004</lastGainTime><sentence>Sentence Type : PROBATION999266193</sentence><currentStatus>Jail999266193</currentStatus><custodyTypeChangeDate>08/17/2010</custodyTypeChangeDate><gainTimeGranted>5</gainTimeGranted></criminalPrisonRecords><criminalActivitiesRecord><date>31/12/2004</date><description>Desc</description></criminalActivitiesRecord><DOB>31/12/2004</DOB><address><city>WINDSWEPT</city><county>MI</county><state>NV</state><streetAddress1>Address1</streetAddress1><streetName>EASTERN</streetName><streetNumber>6721</streetNumber><zip4>3916</zip4><zip5>89119</zip5></address><stateOfBirth>MI</stateOfBirth><uniqueId>cr01467034129435</uniqueId><race>Y</race><countyOfOrigin>MI</countyOfOrigin><criminalAKAs><first>Jon</first><full>Jon Ki Jr</full><last>Ms.</last><middle>Ki</middle></criminalAKAs><criminalAKAs><first>Keely</first><full>Keely Jon Ms.</full><middle>Jon</middle></criminalAKAs></criminalRecords><uniqueId>cr01467034129435</uniqueId><isIncorrectBPSReport>No</isIncorrectBPSReport><offenseId>-416435373</offenseId></individualBpsReports><individualBpsReports><offenseType>Sexual Offense</offenseType><ssn>999266193</ssn><firstName>GuestInd</firstName><lastName>Trett</lastName><middleName></middleName><fullName>GuestInd Trett </fullName><state>MI</state><source>Court</source><convictiondate>07/07/2014</convictiondate><caseType>Desc</caseType><sexualOffense><primaryKey>3</primaryKey><recordType>RDC</recordType><name>GuestInd Trett </name><address><city>WINDSWEPT</city><county>MI</county><state>NV</state><streetAddress1>Address1</streetAddress1><streetName>EASTERN</streetName><streetNumber>6721</streetNumber><zip4>3916</zip4><zip5>89119</zip5></address><SSN>999266193</SSN><origSSN>999266193</origSSN><uniqueId>1467034129435</uniqueId><DOB>07/09/2014</DOB><DOB2>07/09/2014</DOB2><dateFirstSeen>07/09/2014</dateFirstSeen><dateLastSeen>07/09/2014</dateLastSeen><stateOfOrigin>Mich</stateOfOrigin><originStateCode>MI</originStateCode><offenderStatus>G</offenderStatus><offenderCategory>Cat</offenderCategory><riskLevelCode>c</riskLevelCode><riskDescription>RD</riskDescription><policeAgency><name>Mercy</name><contactName>JOHN</contactName><phone>xxxxxx</phone><address><city>WINDSWEPT</city><county>MI</county><state>NV</state><streetAddress1>Address1</streetAddress1><streetName>EASTERN</streetName><streetNumber>6721</streetNumber><zip4>3916</zip4><zip5>89119</zip5></address></policeAgency><school><name>XXXXx</name><address1>MI</address1><address2>MI</address2><address3>MI</address3><address4>KINGSLEY</address4><address5>KINGSLEY5</address5><county>MI</county></school><employer><name>XXXXx</name><address1>MI</address1><address2>KINGSLEY</address2><address3>Houston</address3><address4>MI</address4><address5>MI5</address5><county>M</county></employer><registration><date1>07/09/2014</date1><date1Type>T1</date1Type><date2>07/09/2014</date2><date2Type>T2</date2Type><date3>05/09/2014</date3><date3Type>T3</date3Type><address1>KINGSLEY</address1><address2>MI</address2><address3>Houston</address3><address4>chicg</address4><address5>chicg5</address5><county>C</county><type>T</type></registration><physicalCharacteristics><sex>M</sex></physicalCharacteristics><idNumbers><offenderId>MISOR256576</offenderId><docNumber>06002564XX</docNumber><sorNumber>SOR9876</sorNumber><stateIdNumber>876</stateIdNumber><fbiNumber>06002564FBI</fbiNumber><ncicNumber>234234</ncicNumber></idNumbers><additionalComment1>AC1</additionalComment1><additionalComment2>AC2</additionalComment2><scConvictions><convictionJurisdiction>Juri</convictionJurisdiction><convictionDate>07/07/2014</convictionDate><courtName>Court</courtName><courtCaseNumber>46765454</courtCaseNumber><offenseDate>05/09/2014</offenseDate><offenseCodeOrStatute>Test</offenseCodeOrStatute><offenseDescription>Desc</offenseDescription><victimAge>23</victimAge><victimGender>M</victimGender><victimRelationship>Cousin</victimRelationship><sentenceDescription>SsDesc</sentenceDescription></scConvictions><sexualOffAKAs><first>Jon</first><full>Jon Ki Jr</full><last>Jr</last><middle>Ki</middle></sexualOffAKAs><sexualOffAKAs><first>Keely</first><full>Keely Jon Ms.</full><last>Ms.</last><middle>Jon</middle></sexualOffAKAs></sexualOffense><uniqueId>1467034129435</uniqueId><isIncorrectBPSReport>No</isIncorrectBPSReport><offenseId>-638306316</offenseId></individualBpsReports><displayID>0</displayID></ownershipResponseDetails><ownershipResponseDetails><referenceID>22302</referenceID><hasSanctions>Yes</hasSanctions><hasLEIESanctions>Yes</hasLEIESanctions><hasEPLSSanctions>Yes</hasEPLSSanctions><isdeceasedFlag>Yes</isdeceasedFlag><sanctions><address> </address><boardType>FEDERAL BOARDS</boardType><fraudAbuseFlag></fraudAbuseFlag><lostOfLicenseIndicator></lostOfLicenseIndicator><name>aa dd</name><sanctionDate>03/03/2015</sanctionDate><sanctionId>1353</sanctionId><sanctionReason>MET ALL REQUIREMENTS FOR REINSTATEMENT</sanctionReason><sanctionState>MI</sanctionState><sanctionTerm></sanctionTerm><sanctionType>OTHER</sanctionType><source>SAM</source><sourceType>Federal</sourceType><isIncorrectSanction>No</isIncorrectSanction><sanctionName>aa dd</sanctionName><screeningSource></screeningSource></sanctions><leastSanctionRecord><address> </address><boardType>FEDERAL BOARDS</boardType><fraudAbuseFlag></fraudAbuseFlag><lostOfLicenseIndicator></lostOfLicenseIndicator><name>aa dd</name><sanctionDate>03/03/2015</sanctionDate><sanctionId>1353</sanctionId><sanctionReason>MET ALL REQUIREMENTS FOR REINSTATEMENT</sanctionReason><sanctionState>MI</sanctionState><sanctionTerm></sanctionTerm><sanctionType>OTHER</sanctionType><source>SAM</source><sourceType>Federal</sourceType><isIncorrectSanction>No</isIncorrectSanction><sanctionName>aa dd</sanctionName><screeningSource></screeningSource></leastSanctionRecord><ssnVerified>Yes</ssnVerified><ssn>555555555</ssn><name>aa , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , dd </name><isPossibleRelative></isPossibleRelative><hasCriminalHistory>Yes</hasCriminalHistory><individualBpsReports><offenseType>Criminal Offense</offenseType><ssn>555555555</ssn><firstName>aa</firstName><lastName>dd</lastName><middleName></middleName><fullName>aa , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , dd </fullName><state>NV</state>';
begin
update ANS_CODEDIT_1 set
KNK_RESP= UTL_RAW.cast_to_raw(v_cl)
where KNK_REQ_SID='22302';
dbms_output.put_line(sql%rowcount);
end;
String literal it's to long. BLOB can hold up to 4GB, BUT:
http://docs.oracle.com/cd/E11882_01/server.112/e17766/pcmus.htm
"PLS-00172: string literal too long
Cause: The string literal was longer than 32767 bytes.
Action: Use a string literal of at most 32767 bytes."
Your v_cl is just too long.
One way is to cut this XML into smaller parts and by PL/SQL make few updates.

Way to speed up an insert with left outer join

I am trying to figure out a way to speed up this query...as is it takes about 40 minutes.
Inserts new rows not existing in a table of a linked server.
INSERT INTO [remote.server.com].[DB].dbo.Table1( Id , Barcode , Name , Address , Address2 , City , State , Zip , Date , Text1 , Text2 , Text3 , Text4 , Text5 , Text6 , Text7 , Text8 , Text9 , Text10 )
SELECT s.Id , s.Barcode , s.Name , s.Address , s.Address2 , s.City , s.State , s.Zip , s.Date , s.Text1 , s.Text2 , s.Text3 , s.Text4 , s.Text5 , s.Text6 , s.Text7 , s.Text8 , s.Text9 , s.Text10
FROM LocalTable1 AS s LEFT OUTER JOIN [remote.server.com].[DB].dbo.Table1 AS d ON s.Id = d.Id AND s.Barcode = d.Barcode
WHERE d.Id IS NULL;
Any ideas? Thanks for the help.

Resources